English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
There's an elephant in the room: Solution to sharing a symbol table
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-01 (21:39)
From: Joel Reymont <joelr1@g...>
Subject: There's an elephant in the room: Solution to sharing a symbol table

%type <Symtab.t -> Easy.program>

program: statement EOF { fun t -> List.rev ($1 t) }

etc

Would this work with Menhir and would it be detrimental to performance?

I think there's an elephant in the room. Functorization of a Menhir- 
generated parser doesn't solve this issue since the specialization  
happens at compile time whereas a new symbol table is a run-time value.

	Thanks, Joel
	
--
http://wagerlabs.com/