caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stalkern 2 <stalkern2@tin.it>
To: caml-list@inria.fr
Subject: [Caml-list] camlp4 avec ocamlopt
Date: Wed, 16 Oct 2002 13:59:13 +0200	[thread overview]
Message-ID: <200210161359.13855.stalkern2@tin.it> (raw)

Savez-vous si on peut compiler camlp4 avec ocamlopt, et comment?


j'ai essayé de compiler l'example
-----------------------
camlp4foo.ml
-----------------------
let gram = Grammar.create (Plexer.make ());;
let expr = Grammar.Entry.create gram "expr" ;;


    EXTEND
    expr :
    [ [ x = expr; "+"; y = expr -> x + y

  | x = expr; "-"; y = expr -> x - y ]
  | [ x = expr; "*"; y = expr -> x * y
  | x = expr; "/"; y = expr -> x / y ]
  | [ x = INT -> int_of_string x
  | "("; e = expr; ")" -> e ] ]

    ;
  END;;
-----------------------
avec la commande
ocamlopt -I +camlp4 gramlib.cmxa camlp4foo.ml -o camlp4foo.opt
mais j'obtiens l'erreur
File "camlp4foo.ml", line 5, characters 9-10:
Syntax error
en correspondance de ce qui suit 'expr' et je me sens un peu en panne de 
documentation (comme d'habitude...)


Merci d'avance
Ernesto

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2002-10-16 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 11:59 Stalkern 2 [this message]
2002-10-16 12:09 ` Daniel de Rauglaudre

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=200210161359.13855.stalkern2@tin.it \
    --to=stalkern2@tin.it \
    --cc=caml-list@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).