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-28 (00:41)
From: Chris King <colanderman@g...>
Subject: Re: [Caml-list] yacc style
On Fri, 28 Jan 2005 08:39:56 +1100, Erik de Castro Lopo
<ocaml-erikd@mega-nerd.com> wrote:
> Yes, normally the parser generates a parse tree which is then
> passed to the semantic analyser for semantic checking.

Okay, sounds good -- thanks!

On Thu, 27 Jan 2005 22:52:43 +0000, Jon Harrop <jon@jdh30.plus.com> wrote:
> May I ask what makes it difficult to use a functional style in your case?
> Perhaps it isn't as difficult as you think...

It's for performance reasons, mostly: the structure consists of a hash
table (to store user symbol definitions) and an array (for the actual
data).  It's easy enough to get the data in the form of a parse tree
and massage it into these structures afterwards; I was just wondering
if there was a more direct way.