Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* ocamlyacc
@ 1997-05-14 16:22 David Monniaux
  0 siblings, 0 replies; 3+ messages in thread
From: David Monniaux @ 1997-05-14 16:22 UTC (permalink / raw)
  To: Caml-list

I may sound stupid, but has anybody had experience of ocamlyacc parsers
that would enter a neverending loop when attempting error recovery in
productions near the root of the syntax tree?
(I use 1.05)

Thanks.

--

Je vais peut-etre paraitre idiot, mais quelqu'un a-t-il l'experience de
parsers ocamlyacc qui entreraient en boucle infinie en essayant de
recuperer d'une erreur de syntaxe dans une production pres de la racine de
l'arbre syntaxique?
J'utilise 1.05.

Merci.

David

"Why does the compiler give a type error THERE?"
Computing science student at ENS, Lyon, France
http://www.ens-lyon.fr/~dmonniau






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Ocamlyacc
  1998-05-13 13:40 Ocamlyacc Petit
@ 1998-05-18  8:38 ` Francois Rouaix
  0 siblings, 0 replies; 3+ messages in thread
From: Francois Rouaix @ 1998-05-18  8:38 UTC (permalink / raw)
  To: Petit; +Cc: caml-list

>   Je cherche a debugger une grammaire : je voudrais savoir ou ce
> declenche l'erreur Parse_error, Failure("lexing: empty token") ou ... .

L'exception Failure("lexing: empty token") est levee par le moteur ocamllex
lorsqu'une regle
foo = parse 
   regexp -> { code }
 | regexp -> { code }
 | regexp -> { code }

tombe sur du texte ne correspondant a aucune des regexps donnees.

--f






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Ocamlyacc
@ 1998-05-13 13:40 Petit
  1998-05-18  8:38 ` Ocamlyacc Francois Rouaix
  0 siblings, 1 reply; 3+ messages in thread
From: Petit @ 1998-05-13 13:40 UTC (permalink / raw)
  To: caml-list

  Je cherche a debugger une grammaire : je voudrais savoir ou ce
declenche l'erreur Parse_error, Failure("lexing: empty token") ou ... .
Comment peut on faire ?
Le lexer et le parser sont genere avec Ocamllex et Ocamlyacc.

Merci.

How can we debug a grammar in Ocamlyacc

Thanks






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-05-18 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-14 16:22 ocamlyacc David Monniaux
1998-05-13 13:40 Ocamlyacc Petit
1998-05-18  8:38 ` Ocamlyacc Francois Rouaix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox