Kelly,

>> to
>> 
>> add-expr:
>>                 mul-expr                    |
>>                 mult-expr '+' add-expr |
>>                 mult-expr '-' add-expr ;
>> 
>
>I don't think that's what you want if you're planning
>on executing the code you generate from this...

A subsequent phase of processing can be used to
reverse this syntactic decision.

>By the way, you might want to have a look at 
>
>http://www.lysator.liu.se/c/ANSI-C-grammar-y.html

Thanks, but this grammar requires a symbol table.
It also contains lots of shift/reduce and reduce/reduce
conflicts, and if I was writing a more conventional grammar
I would want to remove these.


derek

--
Derek M Jones                                     tel: +44 (0) 1252 520 667
Knowledge Software Ltd                         mailto:[EMAIL PROTECTED]
Applications Standards Conformance Testing   http://www.knosof.co.uk




_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to