help-bison
[Top][All Lists]
Advanced

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

Re[4]: Which one is "better" ?


From: Baldurien (club internet)
Subject: Re[4]: Which one is "better" ?
Date: Sun, 31 Jul 2005 22:34:20 +0200

Bonjour Hans,

Le dimanche 31 juillet 2005 à 18:43:20, vous écriviez :


HA> On 31 Jul 2005, at 18:03, Baldurien (club internet) wrote:
>> Now,  I'm  asking  myself  about  how  bison  store the grammar in the
>> produced parser :
>>
>> In  class  I've  seen  how  to  construct  the  LL(1)  table,  and the
>> transition  table  for  the  automata,  but since I've seen it only on
>> paper,  I don't know how I could efficently store this like Bison does
>> ?

HA> Bison is currently only supporting LALR(1), which is essentially a
HA> cut down and compacted form of LR(1). This is described in standard
HA> books on compliers, for example, the one by Aho et al.  
HA> "Compiler..." (the "dragon book"). You might look into the book by
HA> Dick Grune, available online (see the FAQ of the newsgroup  
HA> comp.compilers, published there monthly). In short, the grammar isn't
HA> stored at all in the parser, only the states one sees in the  
HA> ".output" file.

HA>    Hans Aberg

Thank  you  for  the  Dick  Grune  (and  Jacob)'s  book. I will try to
investigate, translate (since I prefer french book :o), and use it.



-- 
Cordialement,
 Baldurien                            Courriel : address@hidden





reply via email to

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