|
From: | Akim Demaille |
Subject: | Re: Incorrect(?) useless nonterminal |
Date: | Wed, 7 Nov 2007 09:16:13 +0100 |
Le 6 nov. 07 à 17:02, Wilson Snyder a écrit :
The only difference is line 893: sequenceExpr: yFIRST_MATCH '(' ')' { $<fl>$=$<fl>1; } versus the bad version: sequenceExpr: yFIRST_MATCH '(' sequenceExpr ')' { $<fl>$=$<fl>1; }While the rule is recursive, it doesn't seem significantly different fromother rules with parenthesis handling.
What differs is that you don't provide another rule to anchor the recursion, so sequenceExpr is useless (it does not produce any word).
[Prev in Thread] | Current Thread | [Next in Thread] |