help-bison
[Top][All Lists]
Advanced

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

How to get the text corresponding to a bison rule


From: sgaurelius
Subject: How to get the text corresponding to a bison rule
Date: Fri, 28 Nov 2008 03:12:59 -0800 (PST)

Hi!

Let's say I have the rule

paren:
           '(' expression ')'
           {
                 ........
           }

Flex scanner has previously analyzed the string and extracted the tokens.
However, if I want the text that corresponds to this expression, for example
the "(1+2)" and not just the tokens, what should I do ? Is there some
solution ?

Stratis
-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-text-corresponding-to-a-bison-rule-tp20732674p20732674.html
Sent from the Gnu - Bison - Help mailing list archive at Nabble.com.





reply via email to

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