From: Joel Reymont <joelr1@gmail.com>
To: skaller <skaller@users.sourceforge.net>
Cc: OCaml List <caml-list@inria.fr>,
Emmanuel Onzon <emmanuel.onzon@ens-lyon.fr>
Subject: Re: [Caml-list] Error messages with dypgen
Date: Fri, 18 May 2007 12:36:10 +0100 [thread overview]
Message-ID: <F57F48B5-6005-4F22-AFB7-896986EECA50@gmail.com> (raw)
In-Reply-To: <1179477743.17322.10.camel@rosella.wigram>
John,
There should at least be a textual message embedded in the exception.
This is what I have right now:
input_declarations:
| INPUT COLON input_decs { `InputDecls (List.rev $3) }
| INPUT COLON input_decs error {
parser_error "Missing semicolon" $startpos($4) $endpos($4)
}
| INPUT COLON error {
parser_error "Error after INPUT:" $startpos($3) $endpos($3)
}
| INPUT error {
parser_error "Missing ':' after INPUT" $startpos($2) $endpos($2)
}
I clearly know why the error is happening here. Positions
notwithstanding, wow do I rewrite this for dypgen?
Thanks, Joel
On May 18, 2007, at 9:42 AM, skaller wrote:
> No it isn't. Dypgen uses lexbufs for compatibility with the
> broken Ocamlyacc interface. Dypgen lets you use ulex or
> other lexer as well. The type of the error thrown by the
> automaton should not be polluted by positional information
> that has no reasonable standard specification.
--
http://wagerlabs.com/
next prev parent reply other threads:[~2007-05-18 11:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-18 7:20 Joel Reymont
2007-05-18 8:42 ` [Caml-list] " skaller
2007-05-18 11:36 ` Joel Reymont [this message]
2007-05-18 13:48 ` skaller
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=F57F48B5-6005-4F22-AFB7-896986EECA50@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@inria.fr \
--cc=emmanuel.onzon@ens-lyon.fr \
--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