2011-08-26 20:40:56 +00:00
|
|
|
CodePage -> DocBlock / CodeBlock
|
2011-08-23 21:26:02 +00:00
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
DocBlock -> DirectiveBlock / MarkdownBlock
|
2011-08-23 21:26:02 +00:00
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
Code Block -> !DOC_START RemainingLine
|
|
|
|
|
|
|
|
DirectiveBlock -> DOC_START DIRECTIVE_START (LongDirective / LineDirective)
|
2011-08-25 12:13:39 +00:00
|
|
|
|
|
|
|
MarkdownBlock -> MarkdownLine+
|
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
LongDirective ->
|
|
|
|
(AUTHOR_DIR / DOC_DIR / EXAMPLE_DIR) RemainingLine MarkdownBlock?
|
|
|
|
|
|
|
|
LineDirective -> ORG_DIR RemainingLine
|
2011-08-25 12:13:39 +00:00
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
MarkdownLine -> DOC_START !DIRECTIVE_START RemainingLine
|
2011-08-25 12:47:01 +00:00
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
RemainingLine -> (!EOL)+, EOL
|
2011-08-25 12:47:01 +00:00
|
|
|
|
2011-08-25 12:13:39 +00:00
|
|
|
Tokens
|
|
|
|
------
|
|
|
|
|
2011-08-25 12:47:01 +00:00
|
|
|
DOC_START -> "%% "
|
|
|
|
EOL -> "\n"
|
|
|
|
DIRECTIVE_START -> "@"
|
2011-08-26 20:40:56 +00:00
|
|
|
|
|
|
|
|