Discussion:
camlp4 sequence
(too old to reply)
Dan Bensen
2007-07-11 21:12:29 UTC
Permalink
Trying to define a syntax extension including these terms:
"{"; seq = sequence; "}"
Compiling with:
ocamlc -pp "camlp4r pa_extend.cmo q_MLast.cmo"
-I +camlp4 -c foo.ml
=> Unbound value sequence
How do you capture/parse the sequence between the braces?
--
Dan
www.prairienet.org/~dsb/
Jon Harrop
2007-07-12 20:26:22 UTC
Permalink
Post by Dan Bensen
"{"; seq = sequence; "}"
ocamlc -pp "camlp4r pa_extend.cmo q_MLast.cmo"
-I +camlp4 -c foo.ml
=> Unbound value sequence
How do you capture/parse the sequence between the braces?
As you have done. You must be missing something like:

open Syntax

at the top.
--
Dr Jon D Harrop, Flying Frog Consultancy
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?usenet
Loading...