Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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-- 
+-----------------------------------------------------------+
  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