help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Performance impact of "redundant" rules


From: Frans Englich
Subject: Performance impact of "redundant" rules
Date: Mon, 6 Mar 2006 21:22:43 +0000
User-agent: KMail/1.8.50

Hi everyone,

Sometimes I write grammar constructs like this:

StringLiteral: STRING_LITERAL

and use StringLiteral in subsequent rules, instead of STRING_LITERAL directly. 
The reason is readability, and to stay consistent with an EBNF specification.

I wonder, does this cause a negative performance impact? When I compile the 
parser with extra debug output I see that it actually performs a 
STRING_LITERAL --> StringLiteral reduction.


Thanks in advance,

                Frans




reply via email to

[Prev in Thread] Current Thread [Next in Thread]