From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA07597 for caml-redistribution; Thu, 5 Jun 1997 11:53:36 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA26339 for ; Wed, 4 Jun 1997 20:58:14 +0200 (MET DST) Received: from gemsgw.med.ge.com ([192.88.230.10]) by concorde.inria.fr (8.8.5/8.7.3) with SMTP id UAA14092 for ; Wed, 4 Jun 1997 20:58:13 +0200 (MET DST) Received: from gemed.med.ge.com (gemed.med.ge.com [3.7.12.4]) by gemsgw.med.ge.com (8.6.12/8.6.12) with ESMTP id NAA17342; Wed, 4 Jun 1997 13:55:44 -0500 Received: from mr.med.ge.com (mr-gw [3.28.4.1]) by gemed.med.ge.com (8.6.12/8.6.12) with ESMTP id NAA17270; Wed, 4 Jun 1997 13:58:18 -0500 Received: from ocaml.med.ge.com (swag [3.57.196.14]) by mr.med.ge.com (8.6.12/8.6.12) with ESMTP id NAA24278; Wed, 4 Jun 1997 13:58:15 -0500 Received: by ocaml.med.ge.com (SMI-8.6/SMI-SVR4) id LAA07148; Wed, 4 Jun 1997 11:57:59 -0700 Date: Wed, 4 Jun 1997 11:57:59 -0700 From: gurr@snap (David Gurr) Message-Id: <199706041857.LAA07148@ ocaml.med.ge.com> To: bravier@dassault-aviation.fr Subject: Re: re-entrance of ocamlyacc parsers Cc: caml-list@pauillac.inria.fr X-Sun-Charset: US-ASCII Sender: weis You might want to look at Camlp4 and the new parsers it uses. These new parsers are extensible and so you could add your new parse line to the existing ocaml parser as a modular extension. Further more since the import function can be implemented as a preprocessing step it would IMHO make sense to use camlp4 to do so rather than hacking the compiler. -D gurr@snap.med.ge.com