Hi! I am trying to make a translator from a language (infix notation calculator, for example) to C (or C++). For example I wish to traslate the following expression c=a*(b+c)+q which originate from this sostitution rules NT-> c = NT (NT = Non Terminal) | NT + q | a * NT | (b+c) into the following TMP_1=b+c; TMP_2=a*TMP_1; TMP_3=TMP_2+q; c=TMP_3; Do you know some example which treats a similar case? Thank you Stefano
_______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison