caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Nicolas FRANCOIS <nicolas.francois@free.fr>
Cc: caml-list@inria.fr, ocaml_beginners@yahoogroups.com
Subject: AW: [Caml-list] Two questions about lex/yacc and lablgtk/gl
Date: Sun, 05 Aug 2012 15:16:22 +0200	[thread overview]
Message-ID: <1344172582.3275.22@samsung> (raw)
In-Reply-To: <20120805140641.78eab414@gaston.baronie.vez>

Am 05.08.2012 14:06:41 schrieb(en) Nicolas FRANCOIS:
> Hi.
> 
> 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  
> practice
> is a bit rusty. So a few questions to start on the right tracks :
> 
> 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  
tutorial (i.e. for C), because the matching algorithm is exactly the  
same. The syntax is of course different, but I guess this is the easier  
part, and extractable from the manual (or sample code).

Regarding ocamlyacc, consider to use Menhir instead. It includes a mode  
where grammar conflicts are explained by example, and in my experience  
this is the difficult part of developing a grammar. And it has macros,  
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 ?
> 
> Thanks for any tip.
> 
> \bye
> 
> --
> 
> Nicolas FRANCOIS                      |  /\
> http://nicolas.francois.free.fr       | |__|
> 				      X--/\\
> We are the Micro$oft.		        _\_V
> Resistance is futile.		
> You will be assimilated.         darthvader penguin
> 
> --
> 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
> 
> 
> 

-- 
------------------------------------------------------------
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
------------------------------------------------------------

  reply	other threads:[~2012-08-05 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 12:06 Nicolas FRANCOIS
2012-08-05 13:16 ` Gerd Stolpmann [this message]
2012-08-05 13:36 ` oliver
2012-08-06 12:14   ` "ocaml_beginners"::[] " Nicolas FRANCOIS
2012-08-05 23:22 ` Florent Monnier

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=1344172582.3275.22@samsung \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=gerd@edgespring.com \
    --cc=nicolas.francois@free.fr \
    --cc=ocaml_beginners@yahoogroups.com \
    /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).