Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion parsing ok((2+3)==5)

View parsed - Show only message text

Newsgroups: perl.perl6.compiler
Path: g2news1.google.com!news3.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <amaha...@cs.indiana.edu>
Mailing-List: contact perl6-compiler-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-compi...@perl.org
Received: (qmail 11989 invoked from network); 27 Feb 2005 21:14:40 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
  by lists.develooper.com with SMTP; 27 Feb 2005 21:14:40 -0000
Received: (qmail 25753 invoked by uid 225); 27 Feb 2005 21:14:39 -0000
Delivered-To: perl6-compi...@perl.org
Received: (qmail 25748 invoked by alias); 27 Feb 2005 21:14:39 -0000
X-Spam-Status: No, hits=-5.9 required=8.0
	tests=ALL_TRUSTED,BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received-SPF: neutral (x1.develooper.com: local policy)
Received: from x6.develooper.com (HELO lists.develooper.com) (63.251.223.186)
    by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Sun, 27 Feb 2005 13:14:37 -0800
Received: (qmail 11986 invoked by uid 515); 27 Feb 2005 21:14:35 -0000
Message-ID: <20050227211435.11985.qmail@lists.develooper.com>
To: perl6-compi...@perl.org
Date: Sun, 27 Feb 2005 16:14:34 -0500
User-Agent: Mozilla Thunderbird 1.0 (X11/20041208)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: parsing ok((2+3)==5)
X-Enigmail-Version: 0.89.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Posted-By: 129.79.245.8
Approved: n...@nntp.perl.org
From: amaha...@cs.indiana.edu (Abhijit Mahabal)

I hunted down the cause of the non-parsing of
   ok((2 + 3) == $five, "== (sum on lhs)");
in 03operator.t, but am not yet up to speed in Haskell to fix it.

Below is the location of the problem.

The error is in Parser.hs, in the blocks for parseApply and 
parseParamList. parseApply eats parens using maybeDotParens, and then 
calls parseParamList, which is also willing enough to gobble more parens.
Thus the following fails to parse: f((2+3),5), but this succeeds: 
f(((2+3), 5)).

--abhijit

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google