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 ocaml.org.

Browse thread
genlex parser & ocamldap
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-10 (02:08)
From: Philippe Strauss <philou@p...>
Subject: genlex parser & ocamldap
Hello,

I want to play with ocamldap, but compiling the latest version (0.3)
trigger a syntax error on a simple parser:

philou@philou:~/src/ocamldap-0.3$ make
ocamlc -labels -o varcc varcc.ml
File "varcc.ml", line 22, characters 4-6:
Syntax error
make: *** [varcc] Error 2


in varcc.ml:

...

open Genlex

let lexer = make_lexer ["type"; "public"; "="; "["; "]"; "`"; "|"]

let may_string = parser
[< ' String s >] -> s <------ line 22
| [< >] -> ""

...

duh what's wrong??

best regards

-- 
Philippe Strauss
http://philou.ch/

L'indifférence est le plus grand risque de notre temps,
la forme civilisée de la cruauté. -- Zenta Maurina
--