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 23CC5BC6B for ; Sat, 23 Jun 2007 12:11:37 +0200 (CEST) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5NABadn004613 for ; Sat, 23 Jun 2007 12:11:36 +0200 Received: by py-out-1112.google.com with SMTP id d32so671015pye for ; Sat, 23 Jun 2007 03:11:35 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SF8RVwt5+9m3KD6/H/dbV7GZ7eKLLPFv8A+0XMjtp5+kbHayT7QkL3s14KUrleINBu/MREdXkQAAhv7IgYNkZlNA1ejic4dmaxWRNjQn2ym42dM8sQC7dcwfzZa4oookobfulOmazTqmXaiTDCucWqAUu7AT/IuYgGZ7Uooh2U4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PBh+ZQxGyJYSCIe13+OmG12XIM273UVjMdJmmyzZmQSGFJjTAKrLHXFNX+LluUz3iZ+v/vzIw+8R6teoPk8xSfm/5vtGBokslRrI/S+O/0yvXb8EkK3D50dZDS+k7bSRNSDh5E1sexRfO54r8tqAdoHQefibyuCQb++RvKftPtE= Received: by 10.141.198.8 with SMTP id a8mr246318rvq.1182593495170; Sat, 23 Jun 2007 03:11:35 -0700 (PDT) Received: by 10.141.209.2 with HTTP; Sat, 23 Jun 2007 03:11:35 -0700 (PDT) Message-ID: Date: Sat, 23 Jun 2007 11:11:35 +0100 From: "Lukasz Dobrek" To: caml Subject: Re: [Caml-list] Dypgen C++ grammar In-Reply-To: <5efa98b30706221229m70513c68n5a36bc7395fa07a7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1182522980.6334.4.camel@rosella.wigram> <4a051d930706221033l55f89460k1695c3dc88c3fd12@mail.gmail.com> <5efa98b30706221229m70513c68n5a36bc7395fa07a7@mail.gmail.com> X-j-chkmail-Score: MSGID : 467CF1D8.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 467CF1D8.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lukasz:01 parser:01 lukasz:01 gcc:01 gcc:01 gcc's:01 parser:01 ocamlyacc:01 lalr:01 beginner's:01 ocaml:01 bug:01 beginner's:01 ocaml:01 bug:01 Hi, as a side question sort of related to the topic, has anybody written perhaps a parser for Fortran. I am every once a while forced to write some numerical code in Java ( no comments please, I know ). I would like to have a version of f2java, as adapting the output of f2c is a pain. Regards, Lukasz On 6/22/07, David Hall wrote: > On 6/22/07, Christopher L Conway wrote: > > Another approach would be to modify GCC so that it's intermediate > > representation can be fed to outside tools. As a bonus, this would > > provide support for Java, Fortran, and all the other languages > > front-endsd in the GCC suite. Unfortunately, unless the GCC > > maintainers have changed their position, this would require forking > > the front end, though I suspect the changes required to implement this > > are fairly minor. (See, e.g., this old discussion from the GCC list: > > http://gcc.gnu.org/ml/gcc/2000-10/msg00103.html) > > > > It's sort of already been done with GCC-XML: > > "The purpose of the GCC-XML extension is to generate an XML > description of a C++ program from GCC's internal representation. Since > XML is easy to parse, other development tools will be able to work > with C++ programs without the burden of a complicated C++ parser." > > http://www.gccxml.org/HTML/Index.html > > -- David Hall > > > > > On 6/22/07, skaller wrote: > > > Is anyone interested in developing a C++ parser, possibly using > > > FrontC and/or CIL as the starting point, but using Dypgen > > > as the parser engine? > > > > > > I have made some modification to FrontC/Cil to support > > > some C++ constructions, but Ocamlyacc (LALR1) just can't cope > > > with C++. > > > > > > OTOH, Scott McPeak has a C++ grammar for Elkhound which is > > > a C++ based GLR engine, with BSD licence, so it may be possible > > > to adapt that. > > > > > > -- > > > John Skaller > > > Felix, successor to C++: http://felix.sf.net > > > > > > _______________________________________________ > > > Caml-list mailing list. Subscription management: > > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > > > Archives: http://caml.inria.fr > > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > > > > > > > _______________________________________________ > > Caml-list mailing list. Subscription management: > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > > Archives: http://caml.inria.fr > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >