From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 2716A7ED5C for ; Sun, 5 Aug 2012 15:16:25 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.17.10; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.17.10; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.17.10 as permitted sender) identity=helo; client-ip=212.227.17.10; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsCAH9xHlDU4xEKjWdsb2JhbABFqCiRFSIBAQEBCQkLCRIFJIIgAQEEATo0CwUeHV0JEgYTCQmHbAMGCgewUwOJWBSLNocEA41DiRqRWQ X-IronPort-AV: E=Sophos;i="4.77,715,1336341600"; d="scan'208";a="152470621" Received: from moutng.kundenserver.de ([212.227.17.10]) by mail4-smtp-sop.national.inria.fr with ESMTP; 05 Aug 2012 15:16:24 +0200 Received: from office1.lan.sumadev.de (dslb-094-219-216-115.pools.arcor-ip.net [94.219.216.115]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0MEWCH-1T0RX541YP-00Fi4A; Sun, 05 Aug 2012 15:16:23 +0200 Received: from samsung (ip-92-50-84-130.unitymediagroup.de [92.50.84.130]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 7D52DC00D0; Sun, 5 Aug 2012 15:16:22 +0200 (CEST) Date: Sun, 05 Aug 2012 15:16:22 +0200 From: Gerd Stolpmann Reply-To: Gerd Stolpmann To: Nicolas FRANCOIS Cc: caml-list@inria.fr, ocaml_beginners@yahoogroups.com In-Reply-To: <20120805140641.78eab414@gaston.baronie.vez> X-Mailer: Balsa 2.4.11 Message-Id: <1344172582.3275.22@samsung> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:iRxm2hig7vrpZUHIePC/wYWSPex8jOGfYJByhFATIQJ ZKa5h8HZK/z2Niz4JPzpcRbz+wtgY7kM6ZQi819qNwCn67uiBV xeWDDt4LlT4nirIg0GDYXtvWYIQAHF/T2WLBNUzvYNPrxqrdMn DKsFUkkd/BM23TbbFg6jUFHrz1qz9Jxe2WZpzcjLvZI1LFGOVg cnaj7mrgZUgSRUVxaXE1xFLZhbgMfmkqWeZkPAFzREZkOvXU3L CFRks+CEjIA45vKnYIL1MwEkWQ+uDZf3KFLiGNJEDorzPf8Ef+ KoVxJnVLeZNzZpuSM3oHpRxA2yC8KItDLCWBFaBPYZ3ttvTlNa Pni9JwJ6K1U0TWkeJ7JPKVPyckAiZqcEquGsTkya1 Subject: AW: [Caml-list] Two questions about lex/yacc and lablgtk/gl Am 05.08.2012 14:06:41 schrieb(en) Nicolas FRANCOIS: > Hi. >=20 > I'd like to create a 3D dynamic geometry application. I developped > DrGeoCaml a few years ago, but it's now quite old, and my Caml=20=20 > practice > is a bit rusty. So a few questions to start on the right tracks : >=20 > 1) I'd like to create a parser, with the help of ocamllex/yacc, but > I don't find the help pages very instructive. Is there a good > tutorial like "Ocamllex for complete numbs" ? I don't know of any such tutorial, but you can also watch out for a lex=20= =20 tutorial (i.e. for C), because the matching algorithm is exactly the=20=20 same. The syntax is of course different, but I guess this is the easier=20= =20 part, and extractable from the manual (or sample code). Regarding ocamlyacc, consider to use Menhir instead. It includes a mode=20= =20 where grammar conflicts are explained by example, and in my experience=20= =20 this is the difficult part of developing a grammar. And it has macros,=20= =20 and other convenience features. Gerd > 2) I'd like to use lablgtk for the graphic interface, and lablgl for > the 3D visualization. It's mentionned in lablgtk documentation that > this can be done, but once again, i didn't find much help. Any clue ? >=20 > Thanks for any tip. >=20 > \bye >=20 > -- >=20 > Nicolas FRANCOIS | /\ > http://nicolas.francois.free.fr | |__| > X--/\\ > We are the Micro$oft. _\_V > Resistance is futile.=09=09 > You will be assimilated. darthvader penguin >=20 > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >=20 >=20 >=20 --=20 ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------=