Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Re: yacc gramma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 2332 of 2534
Post > Topic >>

Re: yacc grammar / expressions parsed wrong ?

by chresan <christianschneider@[EMAIL PROTECTED] > Feb 21, 2008 at 03:09 PM

My results were probably caused by a bug of the parser generator
rather then in a wrong grammar. Instead of assigning to '$$' I tried
using a custom stack for building the expressions and then the result
tree was correct.

> [The usual problem is that you're not allocating space properly for
> the tree nodes you create.  And please spell it "grammar". -John]

Thanks for the hint.

Christian
 




 2 Posts in Topic:
yacc grammar / expressions parsed wrong ?
chresan@[EMAIL PROTECTED]  2008-02-18 22:16:53 
Re: yacc grammar / expressions parsed wrong ?
chresan <christianschn  2008-02-21 15:09:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:19:37 CDT 2008.