From: James Lamanna <jamesl@appliedminds.com>
To: jamesl@appliedminds.com, skaller <skaller@users.sourceforge.net>
Cc: Jon Harrop <jon@jdh30.plus.com>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Calling parser from inside a parser rule
Date: Sun, 19 Sep 2004 08:50:42 -0700 [thread overview]
Message-ID: <auto-000000597458@appliedminds.com> (raw)
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
next reply other threads:[~2004-09-19 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-19 15:50 James Lamanna [this message]
2004-09-20 8:52 ` Damien Pous
-- strict thread matches above, loose matches on Subject: below --
2004-09-17 22:22 James Lamanna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=auto-000000597458@appliedminds.com \
--to=jamesl@appliedminds.com \
--cc=caml-list@inria.fr \
--cc=jon@jdh30.plus.com \
--cc=skaller@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox