From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA08094 for caml-redistribution; Fri, 3 Dec 1999 14:54:51 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA27629 for ; Fri, 3 Dec 1999 14:32:40 +0100 (MET) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.119]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id OAA22614 for ; Fri, 3 Dec 1999 14:32:38 +0100 (MET) Received: from ithif20.inf.tu-dresden.de (ithif20 [141.76.75.120]) by tcs.inf.tu-dresden.de (8.9.1a/8.9.1) with SMTP id OAA19570 for ; Fri, 3 Dec 1999 14:31:01 +0100 (MET) Received: by ithif20.inf.tu-dresden.de (SMI-8.6/SMI-SVR4) id OAA13008; Fri, 3 Dec 1999 14:31:03 +0100 Date: Fri, 3 Dec 1999 14:31:03 +0100 Message-Id: <199912031331.OAA13008@ithif20.inf.tu-dresden.de> From: Hendrik Tews MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "caml-list@inria.fr" Subject: Re: "nested" parsers In-Reply-To: <38467330.86DA3330@inrets.fr> References: <38467330.86DA3330@inrets.fr> X-Mailer: VM 6.34 under Emacs 19.34.1 Sender: weis Georges Mariano writes: Date: Thu, 02 Dec 1999 13:25:04 +0000 Subject: "nested" parsers It appears that we can divide the language L in a few "sub"-languages. Let's say that L3 <: L2 <: L1 = L ('<:' included in ) And we would like to have one entry point for each language in our parser. ocamlyacc generates a parsing function for echa start symbol that you declare in the grammar file. Therefore the easiest way (if possible) is that you rewrite your grammar, such that for each of the languages Ln you have one metasymbol, which generates this language. Then you include several start directives in the header of the grammar file. Bye, Hendrik