[antlr-interest] New user
Matt Benson
gudnabrsam at yahoo.com
Wed Aug 28 15:05:25 PDT 2002
I had pretty much determined the meanings of ()* and
()+ but what, then, is the origin of the terms
"closure subrule" and "positive closure subrule" ?
Have I just not read enough yet? :)
Anyway, I just upgraded to the newer version and it
seems to have solved my compilation problem. Tomorrow
I'll probably come up with more!
Thanks a lot,
Matt
--- Terence Parr <parrt at jguru.com> wrote:
>
> 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/
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list