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
[Caml-list] Calling parser from inside a parser rule
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-17 (22:25)
From: James Lamanna <jamesl@a...>
Subject: [Caml-list] Calling parser from inside a parser rule
Is it possible to call the parser from inside a parser rule?
For instance lets say I have a grammar rule which accepts
"load [filename]"

Now inside this rule, I want to open the file, and parse all the 
commands in that file using that same parser.

Is there a way to do this?

James Lamanna

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners