Instead of using "options{ language=CSharp_v4_5 }", the target language name should be passed into the tool as an input argument: http://stackoverflow.com/questions/17873164/antlr4-generating-lexer-in-java-instead-of-c-sharp.
java org.antlr.v4.Tool %* -Dlanguage=CSharp_v4_5With the argument, it generated .cs version of Lexer.
No comments:
Post a Comment