tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
634 stars 109 forks source link

Compile grammar with base classes #511

Closed hieunguyen2211 closed 3 years ago

hieunguyen2211 commented 3 years ago

My Lexer.g4 and Parser.g4 are based on classes that are written by Javascript. I found that I can use this command to compile Lexer.g4 and Parser.g4 without base classes:

antlr4ts -lib . grammar/ScssLexer.g4 grammar/ScssParser.g4

However, I can not find any solution regarding base classes. Is there any way to compile grammar with base classes?