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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 97249BC69 for ; Sun, 27 May 2007 17:43:36 +0200 (CEST) Received: from sigma957.cis.mcmaster.ca (sigma957.CIS.McMaster.CA [130.113.64.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4RFhZks024704 for ; Sun, 27 May 2007 17:43:36 +0200 Received: from Gorash7.UTS.McMaster.CA (Gorash7.UTS.mcmaster.ca [130.113.196.61]) by sigma957.cis.mcmaster.ca (8.13.7/8.13.7) with ESMTP id l4RFhTQa004624 for ; Sun, 27 May 2007 11:43:34 -0400 (EDT) Received: from cgpsrv2.cis.mcmaster.ca (univmail.CIS.McMaster.CA [130.113.64.46]) by Gorash7.UTS.McMaster.CA (8.13.7/8.13.7) with ESMTP id l4RFhGPW011457 for ; Sun, 27 May 2007 11:43:16 -0400 Received: from [72.143.143.58] (account carette@univmail.cis.mcmaster.ca HELO [192.168.1.101]) by cgpsrv2.cis.mcmaster.ca (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 174479379 for caml-list@inria.fr; Sun, 27 May 2007 11:43:17 -0400 Message-ID: <4659A71A.6060304@mcmaster.ca> Date: Sun, 27 May 2007 11:43:22 -0400 From: Jacques Carette Organization: McMaster University User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: OCaml Subject: Lisp/Scheme parser Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version-Mac: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.27.82434 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' X-Miltered: at concorde with ID 4659A727.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; parser:01 parser:01 ocaml:01 parsing:01 trivial:01 ocaml:01 in-memory:01 lisp:01 lisp:01 grammar:01 mcmaster:02 programming:03 languages:03 jacques:03 jacques:03 I tried to find a full Lisp (or Scheme) parser in Ocaml, and did not immediately find one. Is my Google-fu not up to the task? Yes, I am aware that parsing s-expressions is trivial, but the full Lisp (or Scheme) grammar is somewhat more complicated, and I do not feel like reinventing the wheel. Any technology that integrates well with Ocaml is fine, since in the end in-memory ASTs is going to be what we're really interested in. Jacques PS: Other than CIL for C, are there other programming languages for which I can just get an off-the-shelf (non-commercial) parser?