By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,122 Members | 1,075 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,122 IT Pros & Developers. It's quick & easy.

i need a source code compute logical expressions in lex/yacc

P: n/a
Hi.
i need a source code compute logical expressions in lex/yacc.
for Example:
(20>5) or (6<=6)--->true
(1<=2) and (3==1) --->false.

Jan 2 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
deltaa5 wrote:
Hi.
i need a source code compute logical expressions in lex/yacc.
And your C++ language question is...?
for Example:
(20>5) or (6<=6)--->true
(1<=2) and (3==1) --->false.
Doesn't look so logical to me.

Jan 2 '07 #2

P: n/a

deltaa5 napsal:
Hi.
i need a source code compute logical expressions in lex/yacc.
for Example:
(20>5) or (6<=6)--->true
(1<=2) and (3==1) --->false.
You can reuse example in bison manual. See
http://www.gnu.org/software/bison/ma...tml#Infix-Calc
it does almost the same you need, you have to change only operations.

Jan 2 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.