Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[PATCH] Fix unary -
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luke Palmer  
View profile  
 More options Feb 26 2005, 3:11 am
Newsgroups: perl.perl6.compiler
From: l...@luqui.org (Luke Palmer)
Date: Sat, 26 Feb 2005 01:11:05 -0700
Local: Sat, Feb 26 2005 3:11 am
Subject: [PUGS] [PATCH] Fix unary -

I hunted down the -1 + 10 == -11 bug.  I came up with a fix, but I'm not
sure how apporpriate the fix is, which is why I'm submitting it as a
patch.  The problem was that in Prim.hs all the symbolic unaries were
being listed alongside the named unaries, and the unaries in the
precedence table were being overwritten by the universal-precedence
named unaries.  

I fixed it by adding a new "associativity", "spre" (symbolic prefix).
This is for prefix things that are listed in the precedence table in
Parser.hs.

Please look over it.

Luke

  pugs-spre.patch
4K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Autrijus Tang  
View profile  
 More options Feb 26 2005, 4:44 am
Newsgroups: perl.perl6.compiler
From: autri...@autrijus.org (Autrijus Tang)
Date: Sat, 26 Feb 2005 17:44:40 +0800
Local: Sat, Feb 26 2005 4:44 am
Subject: Re: [PUGS] [PATCH] Fix unary -

On Sat, Feb 26, 2005 at 01:11:05AM -0700, Luke Palmer wrote:
> I fixed it by adding a new "associativity", "spre" (symbolic prefix).
> This is for prefix things that are listed in the precedence table in
> Parser.hs.

> Please look over it.

It looks sane.  We eventually want to regenerate the whole table
using the precedence traits (without hard-coded tables in Parser.hs),
and this needs to be redone when that happens, but for now it should
work.  Applied!

Thanks,
/Autrijus/

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »