English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Camlp4-tutorial-Example
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-02 (19:55)
From: Oliver Bandel <oliver@f...>
Subject: [Caml-list] Camlp4-tutorial-Example

I'm experimenting with the Code of the Camlp4-Tutorial.

The simple calculator in Chapter 2 (Grammar-/Plexer-Module)
works very fine for calculation.

What does not work, is the raising of an error, as explained
in the tutorial.

I added the expr_eoi-code, described in the example and
it does not raise an exception. it simply evaluates the
expression, prints the result and stopps.
IMHO the example-parser is not correct (Version of the
tutorial: 29 December 2001).

Any Hints?


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