Browse thread
[Caml-list] Ocamllex/Ocamlyacc feature request
-
Brian Hurt
-
Ken Wakita
- Lukasz Lew
- Damien
-
Ken Wakita
[
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: | Lukasz Lew <ll189417@z...> |
| Subject: | [Caml-list] Syntax error |
Hi. I am using Genlex and ocaml streams and parsers. And when I catch exception Stream.Error "", I can not generate other message than "syntax error". How can I obtain informations about line number or character number, where the error ocurred ? In ocaml examples at http://caml.inria.fr/Examples/oc.tar.gz, function pos_in is used, but it returns always number of last character in stream. Do you have any ideas? And how ocamlyacc deals with this problem? Regards, Lukasz Lew ------------------- 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