From: Laurent Reveillere <Laurent.Reveillere@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Problem when parsing
Date: Fri, 02 Mar 2001 11:46:04 +0100 [thread overview]
Message-ID: <3A9F79EC.56C757EA@labri.fr> (raw)
I wrote a small parser for iso C which does nothing (for now).
The lexer and parser files are well compiled by ocamllex and ocamlyacc.
But when I run the generated program, I have the following error :
Fatal error: uncaught exception Failure(lexing: empty token)
If I replace the following rule in the parser :
translation_unit:
external_declaration { () }
| translation_unit external_declaration { () }
;
by
translation_unit:
external_declaration { () }
;
the test file is parsed with no problem.
The test file is just "int x;"
Any idea ...
I know that this error is raised by lex_engine in byterun/lexing.c but I
do not understand why !!!
--
Laurent
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next reply other threads:[~2001-03-02 10:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-02 10:46 Laurent Reveillere [this message]
2001-03-02 13:02 ` Jean-Christophe Filliatre
2001-03-02 13:07 ` Laurent Reveillere
2001-03-02 13:21 ` Markus Mottl
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=3A9F79EC.56C757EA@labri.fr \
--to=laurent.reveillere@labri.u-bordeaux.fr \
--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