I wrote one grammar on AntlrWorks but one error is shown when I add same
statement,
Here is the error: error(211): Essai.g:87:16: [fatal] rule predicate has
non-LL(*) decision due to recursive rule invocations reachable from alts
5,6. Resolve by left-factoring or using syntactic predicates or
On 05/26/2010 11:18 AM, Nourchn Nor wrote:
I wrote one grammar on AntlrWorks but one error is shown when I add same
statement,
Here is the error: error(211): Essai.g:87:16: [fatal] rule predicate has
non-LL(*) decision due to recursive rule invocations reachable from alts
5,6. Resolve by
Hi,
I have to rewrite several files with mathematical text in them. Text
substitutions are really simple (e.g. 'a=4' - 'a:=4;' and similar).
Input is in form:
a=4
b=3
draw(a)
draw(b)
Needed output
-
a:=4;
b:=3;
draw(a, constant arguments)
draw(b, constant arguments)
The best
I have a JAVA language rewrite translator that adds some more modern control
constructs to an existing DSL. ANTLR has been invaluable.
I've provided include file support using the methods outlined in
http://www.antlr.org/wiki/pages/viewpage.action?pageId=557057 but I would like
to use the
Your s: rule needs to set $st to something too or it will return an empty
template :-)
Jim
-Original Message-
From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-
boun...@antlr.org] On Behalf Of George Soom
Sent: Wednesday, May 26, 2010 4:01 AM
To: antlr-interest@antlr.org
False alarm. There was some subtle abuse going on deep down in our setup of
the parser (our tree adaptor was creating error nodes incorrectly). Apologies!
Richard
Richard Thrippleton wrote:
I'm using the Java target with ANTLR 3.2, and having a problem in a rule in
my parser grammar that
Hello,
Following is a lexer rule to match quoted string that allows backslash
escape sequence.
STRING
:'' ( options {greedy=false;} : ( ~ '\\' | '\\' . ) )* ''
;
It seems to work. But if you put the '*' operator inside the subrule
like this:
STRING
:
Hello,
I am new to ANTLR and I'd appreciate help with my problem. At first
some grammar rules I am going to talk about:
DIGIT: '0'..'9';
LETTER: 'a'..'z'|'A'..'Z';
REAL
: (DIGIT)+ '.' (DIGIT)* EXPONENT?
| '.' (DIGIT)+ EXPONENT?
| (DIGIT)+ EXPONENT
;
INTEGER: DIGIT+;
Please see the FAQ:
http://www.antlr.org/wiki/display/ANTLR3/Lexer+grammar+for+floating+point%2C+dot%2C+range%2C+time+specs
Also note that there is a search engine:
http://antlr.markmail.org
For this group, and it is really good:
http://antlr.markmail.org/search/?q=range
Jim
Just passing along an example HTML subset lexer/parser using ANTLR v4; thanks
to debugging and moral support from Oliver Zeigermann, we got the code
generation and runtime support working sufficiently to use the following
grammars. generate some really nice code indeed. You will note that,
Way cool! Just curious...is the modal state variable automatically accessible
to the parser? Perhaps on a subchannel synced with the token stream? Sorry to
be tuning in late...always interested in new paths to semiosis. :)
Anyway...I need to take a look at girhub and think up a fun use.
On 27/5/10 2:18 AM, Terence Parr pa...@cs.usfca.edu wrote:
Hi Terrence,
Just passing along an example HTML subset lexer/parser using ANTLR v4; thanks
to debugging and moral support from Oliver Zeigermann, we got the code
generation and runtime support working sufficiently to use the
12 matches
Mail list logo