[antlr-interest] v4 questions

JonB blinku at gmail.com
Fri Jan 13 01:50:44 PST 2012


Hello Terence!
I'm looking for v4 for some days and have questions to you.
1. Is it possible(mb better?) to change type of _serializedATN from String
to int[] and do convertion String -> char[] -> int[] in Tool(parser
generator). It'll be better for other language runtimes that hasn't java
toCharArray() method or doesn't support octals in string literals.
Another reason is that you can see "constant string too long" java error on
real big grammar.
 2. Is it normal that v4 parser is slower than v34 parser for now(same
grammar is used)?
Jon B.


More information about the antlr-interest mailing list