dcsimg
ANTLR hangs on many optional rules
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Don_McClean
Posted On:   Monday, January 28, 2002 07:04 AM

I have used PCCTS before, first time am using ANTLR. I have a grammar for a data structure language which is line oriented with mostly optional rules. The rules must be in the specified order when present. start_rule: (rule1)? (rule2)? (rule3)* (rule4)? . . (rule80)? ; ANTLR generates the lexer code ok, but never finishes the parser code generation. I have waited as long as 8 hours, but only the first section of code is generated. Any ideas, is this a known bug in ANTLR? Thanks in advance.    More>>

I have used PCCTS before, first time
am using ANTLR.


I have a grammar for a data structure language which is line oriented with mostly optional rules. The rules must
be in the specified order when present.

			
start_rule: (rule1)?
(rule2)?
(rule3)*
(rule4)?
.
.
(rule80)?
;


ANTLR generates the lexer code ok,
but never finishes the parser code generation. I have waited as long
as 8 hours, but only the first
section of code is generated.


Any ideas, is this a known bug in
ANTLR?


Thanks in advance.

   <<Less
About | Sitemap | Contact