From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 5B8DC7ED34 for ; Fri, 6 Jul 2012 15:23:41 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of wojciech.meyer@googlemail.com) identity=pra; client-ip=209.85.214.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@googlemail.com"; x-sender="wojciech.meyer@googlemail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of wojciech.meyer@googlemail.com designates 209.85.214.54 as permitted sender) identity=mailfrom; client-ip=209.85.214.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@googlemail.com"; x-sender="wojciech.meyer@googlemail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-bk0-f54.google.com) identity=helo; client-ip=209.85.214.54; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@googlemail.com"; x-sender="postmaster@mail-bk0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEBAOLl9k/RVdY2kGdsb2JhbABFpjGRAAgiAQEBAQkJDQcUBCOCGAEBAQQSAhMZAQEsCwEPCwsNDSEiEgEFAQoSBhMIChCHWgEDCwubZwkDimaELgEFhRYKQAMKiUgGizmGJpU6gRKNFD6Dfw X-IronPort-AV: E=Sophos;i="4.77,537,1336341600"; d="scan'208";a="149854696" Received: from mail-bk0-f54.google.com ([209.85.214.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 06 Jul 2012 15:23:40 +0200 Received: by bkcje9 with SMTP id je9so4940287bkc.27 for ; Fri, 06 Jul 2012 06:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XGKis+zvo7fZHMhnJ5Rp0/00WjImtZDsH6bc234PVh4=; b=dH6dKf9nr8EGtxHNDNJJvMUQSMPlOUPZSIM6ZxZ9ZTuHEoiFN908ocQ+1DEgZykoB8 ZjjkcsGJfyDQLTrNCP3lqJj7+seB3NR0+siDB5/Kci3veBsiR7bmrP2B8ysWjtFT7YWZ AifPVVflgUea+Bjk8jucHKjeUiM8EFJ8dNV+Cb+NFgDoDgWUVociZ+sjAjuDRZMGqNvm zVVSayxO6870JvxBrQOetKUMuQ2S6pIOVBSfp0+t8w6NkW2fHG1/2dxR7D5A50jTK1U5 DV7GTR13h4r7SVpT5SJPiXIrIr7Ic3RkC6D3TdRbDyZxCilTQIdVuNwUSIDzg1fOwuYn D6vA== MIME-Version: 1.0 Received: by 10.152.46.6 with SMTP id r6mr30410483lam.7.1341581019820; Fri, 06 Jul 2012 06:23:39 -0700 (PDT) Received: by 10.114.0.203 with HTTP; Fri, 6 Jul 2012 06:23:39 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Jul 2012 14:23:39 +0100 Message-ID: From: Wojciech Meyer To: Fabrice Le Fessant Cc: Andrej Bauer , caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Agda-style parser Hi, I think his talking about "mix-fix" notation. Basically the underscores are placeholders for expression in "mix-fix" operator that can be subsitutied by any expression: if _ then _ else _ = fun cond yes no -> if cond then yes else no please note that under strict evaulation like in OCaml it will not be correct. Another example: _ ++ _ = List.append In Coq there is support for mix-fix operators via. Notation. Wojciech On Fri, Jul 6, 2012 at 2:17 PM, Fabrice Le Fessant wrote: > Could you give more details about what you are looking for, for those > ones who are not familiar with Agda "cool underscore thingy" ? > > Thx, > -Fabrice > > On Fri, Jul 6, 2012 at 2:52 PM, Andrej Bauer wrote: >> If I wanted a parser in Ocaml that can parse things in teh style of >> Agda (with the cool underscore thingy), where would I start looking? >> >> With kind regards, >> >> Andrej >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa-roc.inria.fr/wws/info/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >> > > > > -- > Fabrice LE FESSANT > Chercheur en Informatique > INRIA Saclay -- Ile-de-France > Programming Languages and Distributed Systems > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >