-
Notifications
You must be signed in to change notification settings - Fork 0
Parsing Flow
Edwinem edited this page Aug 25, 2016
·
2 revisions
There are 3 principal entities: Document, Parser and Formatter.
- Document can be contructed with a Type(HTML, Textile), an OutputType(HTML, Latex, Textile), a Stream, a TextWriter, a String or a file name.
- This will represente the initial configuration and will be passed to Parser.
- This class will read the source and give them to the correct Formatter, line by line. He will write in an output Stream, TextWritter or String.
- Probably, there will be many parser to speed up all the configuration (Strategy Pattern Ftw).
- This will take a Line, a Type and an OutputType and will give the Line parsed.
- At least for now, this will use a Regex to work. Will see if we need to speed up things.
- A Formatter depending on the configuration (Strategy Pattern Ftw).
This class contains the Regex and RegexUtils needed by the IFormatters.