rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Update JavaPreProc to use Antlr grammar #7

Open rlwhitcomb opened 3 years ago

rlwhitcomb commented 3 years ago

There is an Antlr v4 grammar now in PreProc.g4, which could/should be incorporated into the main processing loop in "processFile". The grammar is currently commented as "not quite complete", so we should finish it as we see things in the Java code that are not yet incorporated into the grammar.

rlwhitcomb commented 3 years ago

The grammar is now complete (see PreProc.g4 from 203feb0), although the comments say otherwise. But now the hard work begins of incorporating the parser and visitor into the main logic instead of the home-grown lexer/parser in there now. And we still need to make sure there is nothing missing in the grammar that is actually implemented in the JavaPreProc code.