File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,26 @@ This library uses a simplified compiler design. This basically means that our pi
8
8
than a regular compiler. But its following the same semantics.
9
9
10
10
Lexing and Parsing
11
+ ==================
11
12
12
13
A typical compiler will have separate lexing, syntax analysis. However the parser
13
- was designed to do part of the lexing because of all context dependend logic of most Markup languages.
14
+ was designed to do part of the lexing because of all context-dependent logic of most Markup languages.
14
15
We call this the parsing phase. This will result into an AST that is mostly close to the original source. It
15
16
might contain some optimizations for later use.
16
17
17
18
Semantic analysis and Intermediate code generation
19
+ ==================================================
18
20
19
21
The semantic analysis phase of this library is performing a number of steps to collect information of the parsed markup
20
- language. An good example is the collection of the table of contents and the metadata of the parsed documents.
22
+ language. A good example is the collection of the table of contents and the metadata of the parsed documents.
21
23
This is the moment where document node traversers are executed.
22
24
23
25
Code optimization
26
+ =================
24
27
25
28
Do some pre-rendering stuff, like buiding the TOC content and other rendering preparations before the real rendering starts.
26
29
27
30
Code generation
31
+ ===============
28
32
29
- Code generation a.k. rendering. We do deliver a headless
33
+ Code generation a.k.a. rendering. We do deliver a headless
You can’t perform that action at this time.
0 commit comments