Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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 (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