Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Problem when parsing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-03-02 (13:02)
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@l...>
Subject: Re: [Caml-list] Problem when parsing

Laurent Reveillere writes:
 > 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)

This exception is raised by the lexer when input does not match any of
the lexer rules.  So it has probably to do with  your lexer rules, not
with your parser rules.

Hope this helps,
Jean-Christophe FILLIATRE
To unsubscribe, mail  Archives: