caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: tmp123@menta.net
To: caml-list@yquem.inria.fr
Subject: dml
Date: Sat, 21 Jul 2007 13:31:33 +0200	[thread overview]
Message-ID: <46A1EE95.40900@menta.net> (raw)
In-Reply-To: <mailman.7.1184494090.1020.caml-list@yquem.inria.fr>

Hello,

In order to have an "eval" function, I'm trying to compile "dml".

Two problems have appeared up to now. For the first one I've solution, 
but not for the second one. Any help will be welcome.

1)
The first problem has appeared in the "configure" file of this package. 
The result of "ocaml -v" is "3.10.0". When "configure" executes the line:

OCAML_MINOR=$(echo $OCAMLVER | cut -d '.' -f 2)

the variable takes a vlue of "0", instead of "10".

The problem can be skip changing the previous line to:

OCAML_MINOR=$(echo $OCAMLVER | cut -d '.' -f 2)



2) When executing "make", the following error appears:

ocamlc -pp \
         "camlp4 -I /usr/local/lib/ocaml/camlp4 pa_o.cmo pa_extend.cmo 
q_MLast.cmo pr_dump.cmo -impl " \
         -I /usr/local/lib/ocaml/camlp4 -I ../rtcg  -c -impl dml.ml4

File "dml.ml4", line 82, characters 56-65:
While expanding quotation "expr" in a position of "expr":
   Parse error: [ctyp] expected after "(" (in [ctyp])

where the related line is the line "Some s -> ..." of:

let build_patt_fun loc body = function
     SimplePatt (Some id) ->
       <:expr< fun $lid:id$ -> $body$ >>
   | SimplePatt None ->
       <:expr< fun _ -> $body$ >>
   | TuplePatt l ->
       let tuple_id, new_body, typ = gen_tuple_patts loc body l in
       (match tuple_id with
         None ->  <:expr< fun _ -> $body$ >>
       | Some s -> <:expr< fun ( $lid:s$ : Rtcg.code ($list:typ$))
           -> $new_body$ >>)


No idea of where is the error here.

Thanks a lot.


      parent reply	other threads:[~2007-07-21 11:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7.1184494090.1020.caml-list@yquem.inria.fr>
2007-07-15 10:48 ` caml: camlp4 revised syntax tmp123
2007-07-15 11:42   ` unboxed scalars - was [Caml-list] " Basile STARYNKEVITCH
2007-07-15 13:16     ` Gerd Stolpmann
2007-07-15 17:50     ` Christophe Raffalli
2007-07-16 16:40   ` Richard Jones
2007-07-17  3:08   ` Jon Harrop
2007-07-21 11:31 ` tmp123 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46A1EE95.40900@menta.net \
    --to=tmp123@menta.net \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).