Grammar passes ANTLR but fails CoCo/R
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anne_Nymous
Posted On:   Saturday, January 9, 2010 12:08 AM

Using AntlrWorks, I simplified the sql select statement given in your grammar list. The grammar passes "Check Grammar" in AntlrWorks but CoCo/R warned of several ambiguities. Of course seeing the grammar would be best, but in general can anyone think of why ANTLR and CoCo/R would disagree as to the correctness of a grammar (assuming I haven't botched things). Since I am not able to understand how parsers work, a simple explanation, if possible, would be appreciated.

Re: Grammar passes ANTLR but fails CoCo/R

Posted By:   Terence_Parr  
Posted On:   Tuesday, January 19, 2010 05:04 PM

ANTLR allows LL(*) grammars whereas CoCo/R is probably LL(k) for fixed k.
About | Sitemap | Contact