[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | James Lamanna <jamesl@a...> |
| Subject: | Re: [Caml-list] Calling parser from inside a parser rule |
On Sat Sep 18 20:52 , skaller <skaller@users.sourceforge.net> sent:
>On Sun, 2004-09-19 at 03:46, James Lamanna wrote:
>> {
>> let f = open_in $2 in
>> let lexbuf = Lexing.from_channel f in
>> let rec parse_file _ =
>> try
>> List.rev_append (main Lexer.token lexbuf) (parse_file () )
>> with _ -> []
>> in
>> parse_file ()
>> }
>>
>> which obviously doesn't work
>> because main (the parser main function) isn't defined yet.
>
>Do you mean, how to cope with the lack recursion across
>translation units?
>
Essentially.
I want to be able to recurse into my parser.
Thanks.
--
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