tag:blogger.com,1999:blog-1445545651031573301.post2698803303599687291..comments2022-04-27T00:11:58.467-07:00Comments on Ambassador to the Computers: Reading Camlp4, part 2: quotationsJake Donhamhttp://www.blogger.com/profile/04768087689799941690noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-1445545651031573301.post-68100249837863414382014-02-07T12:20:41.118-08:002014-02-07T12:20:41.118-08:00Hi Jake -- Thank you for writing this series of ar...Hi Jake -- Thank you for writing this series of articles. Far better than anything else out there!<br />TimTimothyhttps://www.blogger.com/profile/14810777981680842172noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-79459443251839724612012-06-20T01:42:42.664-07:002012-06-20T01:42:42.664-07:00Hi Frank,
I use OCaML 3.12.1 on Fedora 17 i686 an...Hi Frank,<br /><br />I use OCaML 3.12.1 on Fedora 17 i686 and build with dynlink.cma as suggested by Shawnessy, and I get no error.<br /><br />Jake, could you attach the file variant.ml to make it easier for readers of this excellent introduction to camlp4 to build it?Anonymoushttps://www.blogger.com/profile/01727741166389456059noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-58411528341923223272012-03-30T14:03:16.851-07:002012-03-30T14:03:16.851-07:00Hi Jake.
Thanks for posting this article. I co...Hi Jake. <br /><br />Thanks for posting this article. I could not find any other tutorial that provides the detail that you have. I currently get the following error when running the example.<br /><br />File "variant.ml", line 16, characters 4-158:<br />Error: This expression has type Camlp4.PreCast.Ast.ctyp<br /> but an expression was expected of type Camlp4.PreCast.Ast.str_item<br /><br /><br />I am currently using 3.12.1. Was something new introduced to break your example?Frank Whitehttps://www.blogger.com/profile/10953677334879976506noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-55017650599649037592010-10-01T07:24:32.503-07:002010-10-01T07:24:32.503-07:00Thanks, yes, that's since 3.11.x I think; dynl...Thanks, yes, that's since 3.11.x I think; dynlink.cma used to be packaged with camlp4lib.cma.Jake Donhamhttps://www.blogger.com/profile/04768087689799941690noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-75710486282977838832010-10-01T07:17:06.996-07:002010-10-01T07:17:06.996-07:00Hi Jake,
I needed to change the build rule to
v...Hi Jake,<br /><br />I needed to change the build rule to <br /><br />variant: variant.ml<br /> ocamlc \<br /> -pp camlp4of -I +camlp4 \<br /> -o variant dynlink.cma camlp4lib.cma variant.ml<br /><br />The dynlink module must be new.Shawnessyhttps://www.blogger.com/profile/16613856603034221042noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-67502115383206542862009-01-05T14:08:00.000-08:002009-01-05T14:08:00.000-08:00Thanks Nicolas. I will say something about both th...Thanks Nicolas. I will say something about both these issues in my next post.Jake Donhamhttps://www.blogger.com/profile/04768087689799941690noreply@blogger.comtag:blogger.com,1999:blog-1445545651031573301.post-56936489541754208032009-01-05T13:41:00.000-08:002009-01-05T13:41:00.000-08:00Hi and thanks for these nice posts,I have two rema...Hi and thanks for these nice posts,<BR/><BR/>I have two remarks: the first is about quotations in original syntax, there not necessary simpler than those in the revised syntax, some node will be<BR/>inaccessible due to ambiguities.<BR/><BR/>The second is a refactoring suggestions, you can improve the of_string generator by pulling out the<BR/>catch-all case.<BR/><BR/>Here is the answer http://bit.ly/sK3dnphttps://www.blogger.com/profile/01280276982496105053noreply@blogger.com