infinite recursion warning
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ling_Tang
Posted On:   Friday, August 24, 2001 06:53 AM

What's wrong with the following parser rule



			
stmt
: elem (AND elem)*
| stmt AND elem
;

elem
: ""ke"" WORD
;

Re: infinite recursion warning

Posted By:   Terence_Parr  
Posted On:   Sunday, August 26, 2001 09:38 PM

Hi. Your stmt rule calls stmt without matching any input tokens. That is the reason. The solution is hard to explain in a simple post. I would simply rethink what you are trying to recognize and build the grammar from that. It looks like you are building the grammar from an LR-grammar or spec in a document.
About | Sitemap | Contact