help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison and $ (dollarsign) token at the end


From: by way of Hans Aberg
Subject: Re: Bison and $ (dollarsign) token at the end
Date: Fri, 5 Jul 2002 18:28:43 +0200

Sory for my poor english - I was working all night (now is 10 am. ) Any way
-
Input to the parser is for example:
NUMBER tg = 5;
but it expects white space between 'tg' and '=' and '5' and ';'
I think I must go to bad now ;-) - it looks like yylex is doing wrong
job...

GSZ






                      Hans Aberg

                      <address@hidden        To:
address@hidden

                      .su.se>                  cc:       address@hidden

                                               Subject:  Re: Bison and $
(dollarsign) token at the end
                      2002-07-05 10:44









At 09:18 +0200 2002/07/05, address@hidden wrote:
>OK, so why I get message: parse error, expecting `$' ?

When the parser encounters an error, it writes out a list of the tonkens
that would have been legal at that point.

>When I make input succefying def_decl, parser puts " " - white space on
>output...
>Why?

What is "succefying"? - "succeding" perhaps. Then note a parser state
represents a set of rules each with a position marked on the RHS.

So your description is a bit to sparse for me to be able to parse: For
example, what is your input?

Perhaps some of the experts on this list can help out.

>Regardless

Are you aware of that this might be taken as an insult -- "regards" would
be more normal. :-)


  Hans Aberg





reply via email to

[Prev in Thread] Current Thread [Next in Thread]