🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.caml
Article #75

Re: camlp4 in toplevel

#75
From: jdn
Date: Thu, 20 Sep 2012 18:12
25 lines
2231 bytes
On Thursday, September 20, 2012 2:10:26 PM UTC-4, jdn wrote:
> I'm interested in using camlp4 for a DSL.  To get up to speed I was hoping to use camlp4 in the toplevel to expand quotations to help with the learning curve.  I can't seem to get this to work so I must be missing something, apologies if this is a very simple question.  Here is a snippit of what I'm doing and the error:
> 
> 
> 
> utop $ #camlp4o;;
> 
> utop $ open Camlp4.PreCast;;
> 
> utop $ let q = <:str_item< let f x = x >>;;
> 
> Error: While finding quotation "str_item" in a position of "expr": There is no quotation expander available.                                                               Camlp4: Uncaught exception: Not_found 
> 
> 
> 
> I've tried many different things and done a google search but I can't figure out the problem.  Any hints are greatly appreciated.

I'm using Ocaml 4.00 and utop 1.2.1 on a 64bit Ubuntu 12.04 system.
Technical Details
Message-ID: <28ec691d-055c-438f-87af-78cc4b17aec2@googlegroups.com>
Path: arc1-ca.pugleaf.net!t12ni1511qak.0!nntp.google.com!l8no121725qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <d4509b2c-c577-4566-965e-e624c28e32a0@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: c0fe4b917e,8acb4113c0ae4e0f
X-Google-Attributes: gidc0fe4b917e,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.224.223.84 with SMTP id ij20mr2008692qab.5.1348164738644;
        Thu, 20 Sep 2012 11:12:18 -0700 (PDT)
Received: by 10.236.75.3 with SMTP id y3mr367228yhd.20.1348164738603; Thu, 20
 Sep 2012 11:12:18 -0700 (PDT)
Path: arc1-ca.pugleaf.net!t12ni1511qak.0!nntp.google.com!l8no121725qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: fa.caml
Date: Thu, 20 Sep 2012 11:12:18 -0700 (PDT)
In-Reply-To: <d4509b2c-c577-4566-965e-e624c28e32a0@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=134.117.21.15;
 posting-account=pCqrygoAAAAcjeMuMdoGvJo842XBQl0u
NNTP-Posting-Host: 134.117.21.15
References: <d4509b2c-c577-4566-965e-e624c28e32a0@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28ec691d-055c-438f-87af-78cc4b17aec2@googlegroups.com>
Subject: Re: camlp4 in toplevel
From: jdn <drjdnielsen@gmail.com>
Injection-Date: Thu, 20 Sep 2012 18:12:18 +0000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable