From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 10B50BC6B for ; Sun, 13 May 2007 17:58:34 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4DFwWLM003441 for ; Sun, 13 May 2007 17:58:33 +0200 Received: by nz-out-0506.google.com with SMTP id s1so1606904nze for ; Sun, 13 May 2007 08:58:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OMH2/hJf6giukxAtUF7/hwpv2Nft+paPE+daIw0HF5GaDsXqLNQlmo2dwJq39hTF5PrCf/6t4GUYFsvwumB1j/2yC2obFjgrtuMC4f7rDn3gtNu6+fCPuQe5DGLW72bO9XmgspCZ7/n2LfZLjCbTYrRN8Z+dSH0IGr90VbbNDg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JpoWsUiHIvvwyIVwTxFin15dzj/1P/EAQ58K7iEbBw7taWc8vh7ePRN3dF0KPqjOehccK71KJN/7yzL+qzR961Blyeq/bXEIJNP5Wp4jpqiKB/stB+KwMDxiRnfWlJ3i/b+uyZuOq0B1ScmvtHFue0e3CGmSHqdTFbyKg9i5Wz8= Received: by 10.65.132.13 with SMTP id j13mr6375415qbn.1179071912402; Sun, 13 May 2007 08:58:32 -0700 (PDT) Received: by 10.64.253.4 with HTTP; Sun, 13 May 2007 08:58:32 -0700 (PDT) Message-ID: <6ff764650705130858s7bbc2263sc3d99ed9e8a4760c@mail.gmail.com> Date: Sun, 13 May 2007 11:58:32 -0400 From: "Isaac Freeman" To: caml-list@yquem.inria.fr Subject: camlp4 and streams MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 464735A8.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 464735A8.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 expr:01 expr:01 ocaml:01 ocamlc:01 -pp:01 cmo:01 mlast:01 cmo:01 uncaught:01 pcaml:01 exception:01 preprocessor:01 expression:02 Hello, I am having some problems using streams in my camlp4 extentions. The code: EXTEND expr: LEVEL "expr1" [[ "yield"; e1 = expr LEVEL "simple"; "continue"; e2 = expr LEVEL "simple" -> <:expr< [< $e1$; $e2$ >] >> ]]; END;; produces the error: isaac@lappy:~/stuff/ocaml$ ocamlc -pp "camlp4o pa_extend.cmo q_MLast.cmo" -I +camlp4 -c gen-syntax.ml File "gen-syntax.ml", line 8, characters 18-20: While expanding quotation "expr": Parse error: illegal begin of expression Uncaught exception: Pcaml.Qerror("expr", 1, _) Preprocessor error However, when I change the stream into a list, it works fine, so I'm sure there is just some technicality in using streams here that I'm not accounting for properly. Any ideas? Thanks, Isaac -- James "Isaac" Freeman memotype (at) gmail.com