Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "TBraibant" <tbraibant@wanadoo.fr>
To: <caml-list@inria.fr>
Subject: [Caml-list] Camlp4 for newbies
Date: Fri, 23 May 2003 23:17:42 +0200	[thread overview]
Message-ID: <00ae01c32170$ca488570$0100a8c0@r2d2> (raw)
In-Reply-To: <20030523162106.A17477@pauillac.inria.fr>

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

This is a set of very basic questions about CamlP4.

Fisrt of all, is CAMLP4 really compatible with OCaml, because the Stream don't work the same way, in Ocaml, and particulary, the [<>] constructor don't work ...

Secondary, what are the main differences between CAMLP4, LEX, YACC? and where can i find a small tutorial about those ones?

Third of all, my own problem, is what is the efficientest and easiest way to implement a small compilator of a language of my own, under OCaml. I 'm currently using CamlP4, with a lot of evaluations formulas, like 

let instruction = parser | [< 'KEYWORD "Foo" >] -> Foo
;;

let operande = parser...;;
let modifier = parser...;;

Does someone know where i can find some examples of thing like that?

Thank you very much

Thomas Braibant









[-- Attachment #2: Type: text/html, Size: 2365 bytes --]

  reply	other threads:[~2003-05-23 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23 12:48 [Caml-list] newbie problem with splitting code into files g.o.d
2003-05-23 14:21 ` Xavier Leroy
2003-05-23 21:17   ` TBraibant [this message]
2003-05-23 14:38 ` Ken Rose

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='00ae01c32170$ca488570$0100a8c0@r2d2' \
    --to=tbraibant@wanadoo.fr \
    --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