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=DNS_FROM_RFC_POST, HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 136E3BBAF for ; Sun, 19 Jul 2009 14:35:15 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8DAEqwYkpQDPJhYGdsb2JhbACCJS+WfRcLCBwDsGOEDAWBPw X-IronPort-AV: E=Sophos;i="4.43,229,1246831200"; d="asc'?scan'208,217";a="43634807" Received: from smtp23.orange.fr ([80.12.242.97]) by mail4-smtp-sop.national.inria.fr with ESMTP; 19 Jul 2009 14:34:52 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2311.orange.fr (SMTP Server) with ESMTP id D8DDB70000A6 for ; Sun, 19 Jul 2009 14:34:51 +0200 (CEST) Received: from [192.168.1.2] (LAubervilliers-153-53-1-14.w217-128.abo.wanadoo.fr [217.128.128.14]) by mwinf2311.orange.fr (SMTP Server) with ESMTP id AAE7B7000098 for ; Sun, 19 Jul 2009 14:34:51 +0200 (CEST) X-ME-UUID: 20090719123451700.AAE7B7000098@mwinf2311.orange.fr Subject: DELETE_RULE arguments? From: Serge Leblanc To: caml-list@yquem.inria.fr Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hfrt71XM3APND1T5LUkd" Date: Sun, 19 Jul 2009 14:34:50 +0200 Message-Id: <1248006890.4590.166.camel@serge2> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Spam: no; 0.00; expr:01 ocaml:01 camlp:01 camlp:01 syntax:01 expr:01 syntax:01 lexer:01 regexp:01 regexp:01 gpg:01 3324:01 ocaml:01 gpg:01 3324:01 X-Attachments: cset="utf-8" type="application/pgp-signature" name="signature.asc" --=-hfrt71XM3APND1T5LUkd Content-Type: multipart/alternative; boundary="=-+JqdOR+hlW7/otDviDfP" --=-+JqdOR+hlW7/otDviDfP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, In the following scenario, I would like to remove the first rule of expr. But I can't find the good arguments for the command DELETE_RULE. $ rlwrap ocaml -I +camlp4 -I +ulex=20 # #load "camlp4rf.cma" ;; # #load "pa_ulex.cma" ; # open Camlp4.PreCast ; # Gram.Entry.print Format.std_formatter Syntax.expr ; # DELETE_RULE Gram Syntax.expr: "lexer"; OPT "|"; LIST0 [ regexp; "->"; expr ] SEP "|" END ;=20 Unbound value regexp Otherwise, is there a way to know if the active syntax, is the revised or not? Thank you. -- Serge Leblanc gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x33243C1B Fingerprint =3D 066C 005F 5595 D85C 7673 D969 1DD4 90C4 3324 3C1B --=-+JqdOR+hlW7/otDviDfP Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,
In the following scenario, I would like to remove the first rule of expr. B= ut I can't find the good arguments for the command DELETE_RULE.

$ rlwrap ocaml -I +camlp4 -I +ulex
# #load "camlp4rf.cma" ;;
# #load "pa_ulex.cma" ;
# open Camlp4.PreCast ;
# Gram.Entry.print Format.std_formatter Syntax.expr ;
# DELETE_RULE Gram Syntax.expr: "lexer"; OPT "|"; LIST0= [ regexp; "->"; expr ] SEP "|" END ;
Unbound value regexp

Otherwise, is there a way to know if the active syntax, is the revised or n= ot?

Thank you.
--
Serge Leblanc
gpg --keyserver  hkp://keyserver.ubuntu.com:11= 371 --recv-keys 0x33243C1B
Fingerprint =3D 066C 005F 5595 D85C 7673  D969= 1DD4 90C4 3324 3C1B
--=-+JqdOR+hlW7/otDviDfP-- --=-hfrt71XM3APND1T5LUkd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpjEuAACgkQHdSQxDMkPBsZHwCfVSpIbwrZSZrb1hw15+W6r9KH TcoAniHIVKiIWvez32HO5QuDwXUgTKMw =xfhW -----END PGP SIGNATURE----- --=-hfrt71XM3APND1T5LUkd--