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
[philou@p...: 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:17)
From: Philippe Strauss <philou@p...>
Subject: [philou@p...: genlex parser & ocamldap]
oops, forgot to mention my setup:

current debian sid, with the following caml packages:

philou@philou:~$ dpkg -l | grep -i caml
ii camlimages 2.00-1 OCaml image processing library
ii liblablgl-ocam 0.97-4 an OpenGL interface for Objective
Caml.
ii liblablgtk-oca 1.2.3-5 Ocaml bindings to Gtk+
ii ocaml 3.04-12 ML language implementation with a
class-base
ii ocaml-base 3.04-12 Runtime system for ocaml bytecode
executable
ii ocaml-doc 3.04-4 Documentation for Objective Caml and
Camlp4
ii ocaml-findlib 0.6.2-4 Management tool for OCaml programming
langua
ii ocaml-netclien 0.3-OCaml3.04- OCaml library that implement a
HTTP/1.1 clie
ii ocaml-netstrin 0.10.1-2 OCaml library for internet related
string ha
ii ocaml-pxp 1.1.3-2 OCaml library that implement an
XML-1.0 vali
ii ocaml-shell 0.2.1-2 unix shell access ocaml library
ii ocaml-tools 2002.02.11-1 Various tools for ocaml programmers
ii ocaml-xstr 0.2-6 OCaml library for frequent string
operations
ii tuareg-mode 1.38.9-3 An emacs-mode for ocaml programs.
ii zoggy 0.91-3 OCaml LablGTK interface builder

----- Forwarded message from Philippe Strauss <philou@p...> -----

From: Philippe Strauss <philou@p...>
To: ocaml_beginners@yahoogroups.com
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
--