Worked on documentation, parser.
* Added planning documentation regrding the process. * Updated grammer. * Refactored the test code a bit. * Added sample input file from vbs-suite * Refactored the AST node structure created by the parser.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
CodePage -> DocBlock / CodeBlock
|
||||
SourceFile -> (DocBlock / CodeBlock)*
|
||||
|
||||
DocBlock -> DirectiveBlock / MarkdownBlock
|
||||
DocBlock -> (DirectiveBlock / MarkdownBlock)+
|
||||
|
||||
Code Block -> !DOC_START RemainingLine
|
||||
Code Block -> ((!DOC_START RemainingLine) / EmptyLine)+
|
||||
|
||||
DirectiveBlock -> DOC_START DIRECTIVE_START (LongDirective / LineDirective)
|
||||
|
||||
@ -15,7 +15,9 @@ LineDirective -> ORG_DIR RemainingLine
|
||||
|
||||
MarkdownLine -> DOC_START !DIRECTIVE_START RemainingLine
|
||||
|
||||
RemainingLine -> (!EOL)+, EOL
|
||||
RemainingLine -> (!EOL)+ (EOL / EOI)
|
||||
|
||||
EmptyLine -> EOL
|
||||
|
||||
Tokens
|
||||
------
|
||||
|
Reference in New Issue
Block a user