Benedikt Peetz
70c4cc6f18
Parsing right now works by simply comparing the input string: ``` "/" -> <comment_tokenizer> -> "/" -> <normal_comment> |-> "//" -> <doc_comment> ``` A better method to do this though would be to turn "//" and "///" into keywords and simply leave the parsing to the parser module not the tokenizer. |
||
---|---|---|
.. | ||
grammar.ebnf | ||
grammar.pdf |