* Genlex et apostrophe
@ 1997-07-10 15:23 Vincent Balat
0 siblings, 0 replies; only message in thread
From: Vincent Balat @ 1997-07-10 15:23 UTC (permalink / raw)
To: caml-list
Bonjour,
Y a-t-il un moyen d'utiliser l'apostrophe dans un mot-clef avec le
module Genlex (OCaml 1.05) ? Le programme suivant genere l'erreur :
Uncaught exception: Parse_error("")
alors qu'il fonctionne lorsque ' est remplace par autre chose.
Merci.
open Genlex;;
open Stream;;
let lexer = make_lexer ["'"];;
let rec parse = parser
[< 'Kwd "'" >] -> 22 ;;
parse (lexer (of_string "'"));;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-07-11 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-10 15:23 Genlex et apostrophe Vincent Balat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox