* [Caml-list] lexing and parsing languages with file inclusion
@ 2003-10-20 7:26 James Leifer
2003-10-20 7:40 ` James Leifer
0 siblings, 1 reply; 2+ messages in thread
From: James Leifer @ 2003-10-20 7:26 UTC (permalink / raw)
To: caml-list
Hi,
I'm looking for a good way, when using ocamllex and ocamlyacc, to
parse a language that allows file inclusion, e.g.
#include "foo"
I'd like to get the filename, line number, and character position
right when reporting errors.
Suggestions and pointers would be gratefully received.
--
James Leifer
INRIA Rocquencourt
-------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] lexing and parsing languages with file inclusion
2003-10-20 7:26 [Caml-list] lexing and parsing languages with file inclusion James Leifer
@ 2003-10-20 7:40 ` James Leifer
0 siblings, 0 replies; 2+ messages in thread
From: James Leifer @ 2003-10-20 7:40 UTC (permalink / raw)
To: caml-list
Aha, it seems that this is much easier in 3.07 (just pointed out to me
by Gilles Peskine):
http://pauillac.inria.fr/caml/ocaml/htmlman/libref/Lexing.html
--
James Leifer
-------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-20 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-20 7:26 [Caml-list] lexing and parsing languages with file inclusion James Leifer
2003-10-20 7:40 ` James Leifer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox