Re: Problem in grammar

2011-02-20 Thread Luca
Il 15/02/2011 12.06, Godeau Julien ha scritto: Hello, I have a problem with my grammar that I don't manage to solve and a little help would really be greatful :o) Here is the situation : I use Bison for a command interpreter. I deal with variables (float values) and signals (object that contain

Re: Problem in grammar

2011-02-20 Thread Joel E. Denny
On Tue, 15 Feb 2011, Godeau Julien wrote: > My_var = 3. + 1. > > My_signal = 4. + My_other_signal > > Mysignal = My_other_signal + 4. > > > > Let's assume that My_var and My_signal are new identifiers, my problem > is that in the second example the command "Mysignal = 4." is recognized > by

RE: Problem in grammar

2011-02-20 Thread Godeau Julien
Hello, Thanks for your answer. You're right, I wanted to simplify the thing and I forgot to put the 'SIGNAL' token in signal definition: signal : SIGNAL { $$ = $2; } | '(' signal ')' { $$ = $2; } | full_function_call