Thank Johannes! V2->V3 Tool work very well, I just changed the "$setType" by hand and ready. Thank you again
> Date: Wed, 3 Sep 2008 20:28:06 +0200 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: [EMAIL PROTECTED] > Subject: Re: [antlr-interest] NoSuchElementException > > Lucas Ontivero schrieb: > > Hi All, > > > > I take the html.g from http://www.antlr.org/grammar/HTML/html.g and > > after to a little changes, when generate code launch the following > > exception: NoSuchElementException. This is for all languages. someone > > had this problem? or I am doing something wrong? > > Thank you. > > You are using ANTLR 3.1 for a grammar which requires ANTLR 2.7.7 (or > earlier). As ANTLR 3 uses a new syntax this can't work. Your options are > either to switch back to an earlier version of ANTLR or to convert the > grammar to 3.1. There is a tool which does some of the work, but if you > have no knowledge of both versions it may be easier - when choosing the > second option - to create a 3.1 grammar from scratch. There is a > tutorial on parsing XML and a project to parse XQuery, which may be > helpful in that endeavor. > > Johannes > > P.S.: Please start a new thread by creating a new email directly. > Changing only the subject line messes up the thread viewing in email > programs. > > > > > [12:15:37] error(10): internal error: C:\Documents and > > Settings\Administrator\My Documents\Visual Studio > > 2005\Projects\ArticleProcessor\ArticleProcessor\HTML.g : > > java.util.NoSuchElementException: no such attribute: > > hasPredicateBlockedByAction in template context [TOKEN_NONDETERMINISM] > > org.antlr.stringtemplate.StringTemplate.rawSetAttribute(Unknown Source) > > org.antlr.stringtemplate.StringTemplate.setAttribute(Unknown Source) > > org.antlr.tool.GrammarNonDeterminismMessage.toString(GrammarNonDeterminismMessage.java:124) > > org.antlr.works.utils.ErrorListener.warning(Unknown Source) > > org.antlr.tool.ErrorManager.nondeterminism(ErrorManager.java:648) > > org.antlr.analysis.DecisionProbe.issueWarnings(DecisionProbe.java:453) > > org.antlr.analysis.DFA.<init>(DFA.java:239) > > org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1225) > > org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:970) > > org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:920) > > org.antlr.codegen.Target.performGrammarAnalysis(Target.java:114) > > org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:293) > > org.antlr.Tool.generateRecognizer(Tool.java:419) > > org.antlr.Tool.process(Tool.java:341) > > org.antlr.works.generate.CodeGenerate.generate(Unknown Source) > > org.antlr.works.generate.CodeGenerate.run(Unknown Source) > > java.lang.Thread.run(Unknown Source) > > > > > > ------------------------------------------------------------------------ > > Descargá GRATIS el poder del nuevo Internet Explorer 7. Internet > > Explorer 7 <http://optimized.msn.com/Default.aspx?mkt=es-ar> > > > > > > ------------------------------------------------------------------------ > > > > > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > > Unsubscribe: > > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address > > > _________________________________________________________________ ¿Aburrido? Ingresá ya y divertite como nunca en MSN Juegos. http://juegos.ar.msn.com/ --~--~---------~--~----~------------~-------~--~----~ 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
