help-bison
[Top][All Lists]
Advanced

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

RE: y.output format


From: Hans Aberg
Subject: RE: y.output format
Date: Thu, 10 Jan 2002 18:28:45 +0100

At 12:45 +0100 2002/01/10, Bernard Granier wrote:
>Thanks for your response.

Please cc Bison Help, and quote only relevant context.

>The line :
> << $default   reduce using rule 7 (command)>> explains that the default
>action is to reduce using rule 7 (?)
>
> Which is the state of the states machine after the reduction ?

This is explained in books about bottom up parsers, like fig. 4.30 in Aho
et al., which also contains detailed examples on how it works:

The next state is the top of the stack after the rule has been popped.

>In my output file I get lines like :
> rule 359  @31 ->              /* empty */
>
> What does the @31 means ?

If you have a rule mid-action, then Bison implements that by introducing a
nonterminal expanding to the empty string.

  Hans Aberg





reply via email to

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