Just reminding everyone that if you attempt to generate a parser for Yang
Jiang's Java.g from the command line and get the message:
 
ANTLR Parser Generator  Version 3.1.1
warning(205): Java.g:1:8: ANTLR could not analyze this decision in rule
Tokens; often this is because of recursive rule references visible from the
left edge of alternatives.  ANTLR will re-analyze the decision with a fixed
lookahead of k=1.  Consider using options {k=1;}" for that decision and
possibly adding a syntactic predicate.
error(10):  internal error:
org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1228): could not even
do k=1 for decision 33; reason: timed out (>1000ms)
 
You can add the ANTLR extended command line option
  -Xconversiontimeout 100000
 
(Jiang gives instructions for using his Java.g under ANTLRworks at 
   <http://openjdk.java.net/projects/compiler-grammar/antlrworks/>
http://openjdk.java.net/projects/compiler-grammar/antlrworks/
)
 
Now that warning(205) is very interesting, and I would like to work on
factoring out the recursion, but, of course, there is no rule "Tokens" in
the grammar. Does this message give me a clue about where to look that I am
missing?
 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to