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+
3.
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
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 RUL
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
per the wiki email archives, this is supposed to compile cleanly:
http://www.antlr.org/grammar/1206736738015/JavaScript.g
But, I get the following error to which I only found this: wiki:
http://www.antlr.org/pipermail/antlr-interest/2008-September/030507.html
The grammar looks v3 to me, maybe I
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 a
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 th
isn't MySql already written w/ ANTLR?
- Original Message -
From: "Jim Idle"
Cc: "ANTLR Interest Mailing List"
Sent: Sunday, May 10, 2009 5:16 PM
Subject: Re: [antlr-interest] MySQL grammar -- can I submit?
> Maciej Gawinecki wrote:
>> Dear all,
>>
>> I've started to work on MySQL dia
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
t change 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
10 matches
Mail list logo