Skip to content

Instantly share code, notes, and snippets.

View ShimmerFairy's full-sized avatar

Faye ShimmerFairy

  • The Doctor's TARDIS
View GitHub Profile
From cc5f6714a7acfab5c18eef2da04cec92e964f3be Mon Sep 17 00:00:00 2001
From: Lue <lue@twigil.drangle.com>
Date: Sun, 21 Mar 2010 13:31:24 -0700
Subject: [PATCH] Put in support for fractional numbers (:16<A.4>) and other base scanning (:2<0o10>) into the radcalc function.
---
src/Perl6/Actions.pm | 3 +-
src/builtins/Num.pir | 176 ++++++++++++++++++++++++++++++++------------------
2 files changed, 114 insertions(+), 65 deletions(-)
use v6;
use Test;
plan 3;
#not really much of a test (no links to the spec either). Please improve, I only wrote what was required! --lue
sub a () { $a=4 }; #zero-arg sub to test the underlying problem
Things to like
0-based v. 1-based -- we have a minute 0, but not a month 0.
Error Handling -- There should never be an error when retrieving information.
Floating DateTimes -- The not-imposing-a-timezone part is great, but what will the number represent? Like it anyway
Things to not like
Locale -- This should be left to the module creators.
Time Zone Warnings -- I get their warning, but named timezones are out.
From 9f1be1c0ef3fd0a21a85256ff076622f356f98f9 Mon Sep 17 00:00:00 2001
From: Lue <lue@twigil.drangle.com>
Date: Fri, 11 Jun 2010 16:01:49 -0700
Subject: [PATCH] Fancy Colo[u]red Errors hath come!
[If your terminal supports ANSI, that is :)]
---
src/Perl6/BacktracePrinter.pm | 21 +++++++++++----------
src/builtins/Num.pir | 10 +++++-----
2 files changed, 16 insertions(+), 15 deletions(-)
The Error (invoked during make):
/home/lue/rakudo/parrot_install/bin/parrot perl6.pbc --target=pir --output=Test.pir Test.pm
Method 'set_candidates' not found for invocant of class 'MultiSub'
current instr.: '' pc 306226 (src/gen/perl6-actions.pir:20664) (CORE.setting:0)
called from Sub 'perl6;Perl6;Compiler;main' pc 290826 (src/gen/perl6-actions.pir:15425)
... call repeated 1 times
make: *** [Test.pir] Error 1
Test Summary Report
-------------------
t/spec/S03-operators/arith.rakudo (Wstat: 0 Tests: 135 Failed: 1)
Failed test: 129
t/spec/S05-mass/properties-general.rakudo (Wstat: 0 Tests: 594 Failed: 0)
TODO passed: 4-6, 11-13, 544-546, 550
t/spec/S32-num/rat.rakudo (Wstat: 0 Tests: 799 Failed: 1)
Failed test: 798
t/spec/S32-str/encode.rakudo (Wstat: 0 Tests: 13 Failed: 0)
TODO passed: 13
From 5da3be703c7b17f46d1d84e8f511db48ceaccac3 Mon Sep 17 00:00:00 2001
From: Matthew (lue) <rnddim@gmail.com>
Date: Sun, 4 Jul 2010 14:16:58 -0700
Subject: [PATCH] Implementation of := binding.
---
src/core/operators.pm | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/core/operators.pm b/src/core/operators.pm
From a5d760f9748bc88398e1806b4f69fd3f00d4c90f Mon Sep 17 00:00:00 2001
From: Matthew (lue) <rnddim@gmail.com>
Date: Tue, 6 Jul 2010 11:09:34 -0700
Subject: [PATCH] Begin implementation of ::= binding.
---
src/Perl6/Grammar.pm | 1 -
src/core/operators.pm | 8 ++++++++
2 files changed, 8 insertions(+), 1 deletions(-)
Note: please check gist #463775 first before applying this patch.
From 7a8bc356f02078fc0fa81ecf5c50579312c55f30 Mon Sep 17 00:00:00 2001
From: Matthew (lue) <rnddim@gmail.com>
Date: Tue, 6 Jul 2010 14:20:35 -0700
Subject: [PATCH] Change := to deal with arrays and hashes better.
---
src/core/operators.pm | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
the token is found on line 905 of src/Perl6/Grammar.pm:
token variable_declarator {
:my $*IN_DECL := 'variable';
<variable>
{ $*IN_DECL := '' }
[
<.unsp>?
$<shape>=[
| '(' ~ ')' <signature>