JWE Project Ideas: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:


Refactor comment handling in lexer and parser.
Refactor comment handling in lexer and parser.
* Gather and attach all comments to tokens in the lexer, never in the parser.  This change will allow us to simplify the grammar by eliminating the stash_comment nonterminal symbol in the parser.
* Store tokens (with location info and comments attached) in the parse tree instead of imprecise data like "leading_comment" or "trailing_comment".  This change will allow better location info for error reporting and easier and more accurate access to comments so that we can more easily find documentation strings or test and demo blocks (some of that work is already done).


== MException object ==
== MException object ==

Navigation menu