Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
stupid q: camlp4
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anastasia Gornostaeva  
View profile  
 More options Nov 8 2008, 3:00 pm
Newsgroups: fa.caml
From: Anastasia Gornostaeva <erm...@ermine.pp.ru>
Date: Sat, 08 Nov 2008 20:00:53 UTC
Local: Sat, Nov 8 2008 3:00 pm
Subject: [Caml-list] stupid q: camlp4
Hello.

How can I learn modern Camlp4?

thx.
ermine

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Harrop  
View profile  
 More options Nov 8 2008, 3:22 pm
Newsgroups: fa.caml
From: Jon Harrop <j...@ffconsultancy.com>
Date: Sat, 08 Nov 2008 20:22:05 UTC
Local: Sat, Nov 8 2008 3:22 pm
Subject: Re: [Caml-list] stupid q: camlp4
On Saturday 08 November 2008 20:00:44 Anastasia Gornostaeva wrote:

> Hello.

> How can I learn modern Camlp4?

The new Camlp4 is not yet fully documented. The official documentation is on a
wiki here:

  http://brion.inria.fr/gallium/index.php/Camlp4

Richard Jones' OCaml tutorial site has a simple "foreach" example:

  http://www.ocaml-tutorial.org/camlp4_3.10/

Our OCaml Journal published an article about parsers and macros using the new
Camlp4 on 23rd November 2007:

  http://www.ffconsultancy.com/products/ocaml_journal/?ol

I once posted a simple compiler for the "Minim" language that was written
using Camlp4:

http://caml.inria.fr/pub/ml-archives/caml-list/2007/08/c92bb15c444511...

--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anastasia Gornostaeva  
View profile  
 More options Nov 8 2008, 4:03 pm
Newsgroups: fa.caml
From: Anastasia Gornostaeva <erm...@ermine.pp.ru>
Date: Sat, 08 Nov 2008 21:03:43 UTC
Local: Sat, Nov 8 2008 4:03 pm
Subject: Re: [Caml-list] stupid q: camlp4

Oh, how many useful links! I spent some time on ocaml.org site
to figure out something interesting for new camlp4, but it was not always clear
if the article is about new or old camlp4.

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Harrop  
View profile  
 More options Nov 8 2008, 4:09 pm
Newsgroups: fa.caml
From: Jon Harrop <j...@ffconsultancy.com>
Date: Sat, 08 Nov 2008 21:09:45 UTC
Local: Sat, Nov 8 2008 4:09 pm
Subject: Re: [Caml-list] stupid q: camlp4
On Saturday 08 November 2008 21:03:33 Anastasia Gornostaeva wrote:

> On Sat, Nov 08, 2008 at 09:24:05PM +0000, Jon Harrop wrote:
> > Richard Jones' OCaml tutorial site has a simple "foreach" example:

> >   http://www.ocaml-tutorial.org/camlp4_3.10/

> > Our OCaml Journal published an article about parsers and macros using the
> > new Camlp4 on 23rd November 2007:

> >   http://www.ffconsultancy.com/products/ocaml_journal/?ol

> Oh, how many useful links! I spent some time on ocaml.org site
> to figure out something interesting for new camlp4, but it was not always
> clear if the article is about new or old camlp4.

Well, you get what you pay for. ;-)

--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Jones  
View profile  
 More options Nov 9 2008, 10:39 am
Newsgroups: fa.caml
From: Richard Jones <r...@annexia.org>
Date: Sun, 09 Nov 2008 15:39:52 UTC
Local: Sun, Nov 9 2008 10:39 am
Subject: Re: [Caml-list] stupid q: camlp4

On Sat, Nov 08, 2008 at 11:00:44PM +0300, Anastasia Gornostaeva wrote:
> How can I learn modern Camlp4?

With difficulty.  That's sad because it's very powerful.

I would suggest starting with Martin's Jambon's tutorial.  Even though
it refers to the "old" camlp4 / camlp5, it's still useful to
understand the concepts:

http://martin.jambon.free.fr/extend-ocaml-syntax.html

Then take a look at Martin's example of what changed between the two
versions:

http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html

The camlp4 wiki has already been mentioned, and is very useful.  This
is probably the most useful reference page of all:

http://brion.inria.fr/gallium/index.php/AST

Finally take a look at some real examples:

http://caml.inria.fr/cgi-bin/hump.en.cgi?sort=0&browse=92

Rich.

--
Richard Jones
Red Hat

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google