2011-08-31 17:09:25 +00:00
|
|
|
SourceFile ->
|
|
|
|
(Block / DocBlock / CodeBlock)+
|
2011-08-23 21:26:02 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
Block ->
|
|
|
|
DocBlock CodeBlock
|
2011-08-23 21:26:02 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
DocBlock ->
|
|
|
|
(Directive / DocText)+
|
2011-08-26 20:40:56 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
Directive ->
|
|
|
|
DocLineStart AT (LongDirective / ShortDirective)
|
2011-08-25 12:13:39 +00:00
|
|
|
|
2011-08-26 20:40:56 +00:00
|
|
|
LongDirective ->
|
2011-08-31 17:09:25 +00:00
|
|
|
("author" / "doc" / "example") RemainingLine DocText?
|
2011-08-29 14:44:05 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
ShortDirective ->
|
|
|
|
("org" / "copyright") RemainingLine
|
2011-08-25 12:47:01 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
DocText ->
|
|
|
|
(DocLineStart !AT RemainingLine)+
|
2011-08-25 12:13:39 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
DocLineStart ->
|
|
|
|
Space* DOC_LINE_START Space?
|
2011-08-26 20:40:56 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
CodeBlock ->
|
|
|
|
(!DocLineStart RemainingLine)+
|
2011-08-26 20:40:56 +00:00
|
|
|
|
2011-08-31 17:09:25 +00:00
|
|
|
RemainingLine ->
|
|
|
|
((!EOL)* EOL) / ((!EOL)+ EOI)
|