Re: Why is this not allowed?

From: Hendrik Tews (
Date: Fri Dec 03 1999 - 14:31:03 MET

Date: Fri, 3 Dec 1999 14:31:03 +0100
Message-Id: <>
From: Hendrik Tews <>
To: "" <>
Subject: Re: "nested" parsers
In-Reply-To: <>

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.



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:29 MET