[il-antlr-interest: 24201] Re: [antlr-interest] Excluding keywords

2009-06-13 Thread Avid Trober
that). - Original Message - From: Indhu Bharathi To: 'Avid Trober' ; antlr-inter...@antlr.org Sent: Wednesday, June 10, 2009 10:59 PM Subject: RE: [antlr-interest] Excluding keywords As stated in the link you provided, there is nothing you have to do to get this functionality

[il-antlr-interest: 24158] [antlr-interest] Excluding keywords

2009-06-10 Thread Avid Trober
I saw something close to my problem on the wiki, http://www.antlr.org/pipermail/antlr-interest/2006-June/016563.html But, I've got an extra rule, filter. Must I resort to an action, or is there a way to do this purely in the grammar file? filter : // identifier, but *not* a keyword

[il-antlr-interest: 23644] Re: [antlr-interest] MySQL grammar -- can I submit?

2009-05-10 Thread Avid Trober
isn't MySql already written w/ ANTLR? - Original Message - From: Jim Idle j...@temporal-wave.com Cc: ANTLR Interest Mailing List antlr-inter...@antlr.org Sent: Sunday, May 10, 2009 5:16 PM Subject: Re: [antlr-interest] MySQL grammar -- can I submit? Maciej Gawinecki wrote: Dear all,

[il-antlr-interest: 23630] [antlr-interest] v3.3.1 Upgrade Problems

2009-05-08 Thread Avid Trober
I've been running antlr.3.1.jar without any problems for some time now. I recently obtained antlr.3.1.3.jar, changed my CLASSPATH accordingly, and now all my grammars have weird warnings and/or errors. Is there more to an ANTLR upgrade than just downloading the new jar and making sure it's in

[il-antlr-interest: 23597] [antlr-interest] hasPredicateBlockedByAction ???

2009-05-07 Thread Avid Trober
Hi, does anybody know how to determine the source of an error such as this? the wiki says convert the grammar to v3; it is a v3 grammar. Thanks. ANTLR Parser Generator Version 3.1 (August 12, 2008) 1989-2008 error(10): internal error: JavaScript.g : java.util.NoSuchElementException: no such

[il-antlr-interest: 23296] [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Avid Trober
I'm parsing a 7-bit ASCII stream ... 2 questions Question 1: can't I just fall-thru wrt to lexer rules, where lexer rules are specific-to-general, and avoid indeterminisms at run-time? For example: NULL: '\u' ; SOH: '\u0001' ; ... // (EACH CONTROL CHARCTER HAS ITS OWN LEXER

[il-antlr-interest: 23315] Re: [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Avid Trober
thanks. org.antlr.Tool is happy with these two, regardless of which one is above/below the other. But, won't the DFA's care about the order??? DQUOTE : '' ; DQUOTE_STRING : DQUOTE ( ~('') )* DQUOTE - Original Message - From: Gavin Lambert an...@mirality.co.nz To: Avid Trober

[il-antlr-interest: 21997] [antlr-interest] DFA argument s

2009-02-19 Thread Avid Trober
What determines the value of the s argument to a DFA routine such as this? protected internal int DFA21_SpecialStateTransition(DFA dfa, int s, IIntStream _input) The DFA is called via this in the parser: alt21 = dfa21.Predict(input); then, goes through some ANTLR call frames before emerging

[il-antlr-interest: 21611] [antlr-interest] Allowing random order via grammar-only notation ...

2009-01-29 Thread Avid Trober
Can grammar syntax alone accomplish this? Or, am I going to have to rely on some additional code of my own such as actions? gated predicates? other? 1. A command, COMMAND, can be followed by three modifiers, M1, M2 and M3. 2. Each modifier has its own cardinality: M1? M2* M3+