User:OrenBochman/ParserNG/Preprocessor Antlr

The Preprocessor
This is a Preprocessor spec in ANTLR

EBNF DEFS
The following difinitions a referenced

//based on

Sanitizer Filter Antlr
"To make ANTLR generate lexers that behave like the UNIX utility sed (copy standard in to standard out except as specified by the replace patterns), use a filter rule that does the input to output copying:" - antlr docs

based on

"You often want to perform an action upon seeing a pattern or two in a complicated input stream, such as pulling out links in an HTML file. One solution is to take the HTML grammar and just put actions where you want." - antlr docs

based on