A problem when I was compiling antlr.g
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yao_Liu
Posted On:   Monday, May 16, 2005 09:09 AM

I once compiled antlr.g in Eclipse using ANTLR 2.7.5, it worked well. Later I got an antlr.jar of ANTLR 2.8e. Then I deleted the antlr.jar of ANTLR 2.7.5 and put the one of ANTLR 2.8e at the same location where the old one was. Therefore, I thought it's no need of modifying CLASSPATH. But a problem came up when I compiled antlr.g again: ( exceptionGroup )?! ^{ {ruleAutoGen == false}? => () } ^ was reported as "an unexpected token". I tried to deleted ^, but another similar problem in antlr.g appeared also with ^. It seemed that ^ in similar cases were problematic. But in fact compiling it with antlr.ja   More>>

I once compiled antlr.g in Eclipse using ANTLR 2.7.5,
it worked well. Later I got an antlr.jar of ANTLR 2.8e.

Then I deleted the antlr.jar of ANTLR 2.7.5 and put
the one of ANTLR 2.8e at the same location where the
old one was. Therefore, I thought it's no need of
modifying CLASSPATH.

But a problem came up when I compiled antlr.g again:

( exceptionGroup )?!

^{ {ruleAutoGen == false}? => () }

^ was reported as "an unexpected token".

I tried to deleted ^, but another similar problem

in antlr.g appeared also with ^. It seemed that ^
in similar cases were problematic. But in fact

compiling it with antlr.jar of ANTLR 2.7.5 succeeded.

That's very strange.

What's the possible reason? Is there some uncompatibility
between antlr.jar of ANTLR 2.8e and the rest of old antlr's
package, the plugin for Eclipse, or antlr.g.

Thanks a lot.

   <<Less
About | Sitemap | Contact