I thought this would be occurred because there was only antlr grammar, So I ran `antlr4 -Dlanguage=Java Expr.g4`, But I got a following error.
$ antlr4 -Dlanguage=Java Expr.g4
warning(156): Expr.g4:20:53: invalid escape sequence
warning(156): Expr.g4:25:23: invalid escape sequence
warning(156): Expr.g4:26:21: invalid escape sequence
Exception in thread "main" java.lang.RuntimeException: set is empty
at org.antlr.v4.runtime.misc.IntervalSet.getMaxElement(IntervalSet.java:421)
at org.antlr.v4.runtime.atn.ATNSerializer.serialize(ATNSerializer.java:169)
at org.antlr.v4.runtime.atn.ATNSerializer.getSerialized(ATNSerializer.java:601)
at org.antlr.v4.codegen.model.SerializedATN.<init>(SerializedATN.java:22)
at org.antlr.v4.codegen.model.Recognizer.<init>(Recognizer.java:64)
at org.antlr.v4.codegen.model.Lexer.<init>(Lexer.java:27)
at org.antlr.v4.codegen.OutputModelController.lexer(OutputModelController.java:151)
at org.antlr.v4.codegen.OutputModelController.buildLexerOutputModel(OutputModelController.java:104)
at org.antlr.v4.codegen.CodeGenerator.generateLexer(CodeGenerator.java:119)
at org.antlr.v4.codegen.CodeGenPipeline.process(CodeGenPipeline.java:54)
at org.antlr.v4.Tool.processNonCombinedGrammar(Tool.java:404)
at org.antlr.v4.Tool.process(Tool.java:354)
at org.antlr.v4.Tool.processGrammarsOnCommandLine(Tool.java:321)
at org.antlr.v4.Tool.main(Tool.java:168)
How can I resolve this problem?
Regards,
Jason.
--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/c7698a0e-984b-4365-a850-b45fc187809b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.