[antlr-interest] New user
Terence Parr
parrt at jguru.com
Wed Aug 28 14:17:24 PDT 2002
On Wednesday, August 28, 2002, at 02:13 PM, Matt Benson wrote:
> I had looked in the FAQ and seen the relevant article.
> I had not seen the Getting started with Antlr
> article. I guess my biggest problem is unifying the
> table in the manual that shows the punctuation and
> keywords with English descriptions. Understanding the
> difference between a subrule, a closure subrule, and a
> positive subrule seems like something that's only
> going to come with much perusal of the documentation,
> or more education in the field of parsing in general.
Ah. well a subrule just lets you put alternatives in-line instead of
making another rule like this:
a : A (B|C) ;
The "(...)*" closure means zero more times around the loop and (...)+
means at least once :)
>
> The biggest problem I am facing at the moment is this:
> if I run Antlr on the latest java.g from John Pybus
> via the ant-interest list, its declared charVocabulary
> fills JavaLexer.java with various unicode/octal escape
> sequences that will not compile with Sun's javac for
> either 1.3 or 1.4. I get various "empty character
> literal", "unclosed character literal", and "illegal
> unicode escape" errors. I am using Antlr 2.7.1. Do I
> need to upgrade to the new alpha?
Yup...the 2.7.2a2 release (nearly the final thing) will fix lots of
that.
Ter
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list