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
yacc style
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-01-27 (21:40)
From: Erik de Castro Lopo <ocaml-erikd@m...>
Subject: Re: [Caml-list] yacc style
On Thu, 27 Jan 2005 15:17:13 -0500
Chris King <colanderman@gmail.com> wrote:

> Is it considered better style to
> instead have the parser return a parse tree, and then use that to
> generate the imperative structure, 

Yes, normally the parser generates a parse tree which is then
passed to the semantic analyser for semantic checking.

  Erik de Castro Lopo  nospam@mega-nerd.com (Yes it's valid)
"... a discussion of C++'s strengths and flaws always sounds like an
argument about whether one should face north or east when one is
sacrificing one's goat to the rain god." -- Thant Tessman