Version française
Home     About     Download     Resources     Contact us    
Browse thread
"nested" parsers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Georges Mariano <georges.mariano@i...>
Subject: "nested" parsers
Hello everyone,

We have developed a parser for a language L using ocamllex
and ocamlyacc , thus we have a L.mly 

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.
	a) is it possible (i.e  with ocamlyacc) ?
	(with one .mly, with several ??)

	b) how to do that ? (it's not very clear for us ;-)
	(pointers to specifica documentation or examples are
	welcome...)

Thanks for any help

-- 
> Georges MARIANO                           tel: (33) 03 20 43 84 06
> INRETS,                                   fax: (33) 03 20 43 83 59
> Institut National de Recherches sur les Transport et leur Sécurité
> 20 rue Elisee Reclus    
> 59650 Villeneuve d'Ascq                   mailto:mariano@terre.inrets.fr
> FRANCE.                         
> B.U.G http://www3.inrets.fr/BUGhome.html  mailto:bug@estas1.inrets.fr