Nim interface to ANTLR4 listener/visitor via jsffi
Macros
macro listener(grammar: string; body: untyped)
- Declares an ANTLR listener block
macro visitor(grammar: string; body: untyped)
- Declares an ANTLR visitor block
macro enter(body: untyped)
- Declares an ANTLR subblock containing "enter" methods
macro exit(body: untyped)
- Declares an ANTLR subblock containing "exit" methods
macro visit(body: untyped)
- Declares an ANTLR subblock containing "visit" methods
Templates
template antlrBlock(blockName: string; returnType: string; body: untyped)