From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA30377; Fri, 23 May 2003 23:18:23 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA30240 for ; Fri, 23 May 2003 23:18:22 +0200 (MET DST) Received: from mwinf0302.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.28]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h4NLILH27800 for ; Fri, 23 May 2003 23:18:21 +0200 (MET DST) Received: from r2d2 (unknown [81.51.251.7]) by mwinf0302.wanadoo.fr (SMTP Server) with SMTP id 3F0F2C000240 for ; Fri, 23 May 2003 23:18:10 +0200 (CEST) Message-ID: <00ae01c32170$ca488570$0100a8c0@r2d2> From: "TBraibant" To: References: <20030523124814.GD5371@sfear.sc-networks.de> <20030523162106.A17477@pauillac.inria.fr> Subject: [Caml-list] Camlp4 for newbies Date: Fri, 23 May 2003 23:17:42 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AB_01C32181.82B2A770" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam: no; 0.00; camlp:01 newbies:01 foo:01 ocaml:01 parser:02 constructor:03 lex:04 let:04 differences:04 arial:95 implement:05 tutorial:05 problem:07 examples:07 stream:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_00AB_01C32181.82B2A770 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 let instruction =3D parser | [< 'KEYWORD "Foo" >] -> Foo ;; let operande =3D parser...;; let modifier =3D parser...;; Does someone know where i can find some examples of thing like that? Thank you very much Thomas Braibant ------=_NextPart_000_00AB_01C32181.82B2A770 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
This is a set of very basic questions = about=20 CamlP4.
 
Fisrt of all, is CAMLP4 really = compatible with=20 OCaml, because the Stream don't work the same way, in Ocaml, and = particulary,=20 the [<>] constructor don't work ...
 
Secondary, what are the main = differences between=20 CAMLP4, LEX, YACC? and where can i find a small tutorial about those=20 ones?
 
Third of all, my own problem, is what = is the=20 efficientest and easiest way to implement a small compilator of a = language of my=20 own, under OCaml. I 'm currently using CamlP4, with a lot of evaluations = formulas, like
 
let instruction =3D parser | [< = 'KEYWORD "Foo"=20 >] -> Foo
;;
 
let operande =3D = parser...;;
let modifier =3D = parser...;;
 
Does someone know where i can find some = examples of=20 thing like that?
 
Thank you very much
 
Thomas Braibant
 
 
 
 
 
 
 
 
 
------=_NextPart_000_00AB_01C32181.82B2A770-- ------------------- 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