caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lukasz Lew <ll189417@zodiac.mimuw.edu.pl>
To: caml-list@inria.fr
Subject: [Caml-list] Syntax error
Date: Wed, 4 Jun 2003 11:19:47 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0306041105490.22712-100000@zodiac.mimuw.edu.pl> (raw)
In-Reply-To: <941EB0B0-91BE-11D7-B411-000393B9096C@is.titech.ac.jp>

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


  parent reply	other threads:[~2003-06-04  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 21:03 [Caml-list] Ocamllex/Ocamlyacc feature request Brian Hurt
2003-05-29 10:16 ` Ken Wakita
2003-05-29 12:03   ` Damien
2003-05-29 13:07     ` Luc Maranget
2003-06-04  9:19   ` Lukasz Lew [this message]
2003-06-04 17:25     ` [Caml-list] Syntax error Stefan Heimann

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=Pine.LNX.4.44.0306041105490.22712-100000@zodiac.mimuw.edu.pl \
    --to=ll189417@zodiac.mimuw.edu.pl \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).