- Timestamp:
- 08/06/08 09:20:46 (4 months ago)
- Location:
- src/perl6
- Files:
-
- 5 modified
-
Cursor.pmc (modified) (1 diff)
-
LazyMap.pm (modified) (2 diffs)
-
STD.pm (modified) (18 diffs)
-
gimme5 (modified) (1 diff)
-
teststd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r21797 r21799 2 2 use strict; 3 3 use warnings; 4 no warnings 'recursion'; 4 5 use utf8; 5 6 -
src/perl6/LazyMap.pm
r21792 r21799 2 2 use strict; 3 3 use warnings; 4 no warnings 'recursion'; 4 5 5 6 use Exporter; … … 47 48 48 49 sub iter { 49 no warnings 'recursion';50 50 my $self = shift; 51 51 my $lazies = $self->{L}; -
src/perl6/STD.pm
r21797 r21799 410 410 | \h* '#' :: [ 411 411 | <?opener> :: 412 [ 413 <?after ^^ . > <.panic: "Can't use embedded comments in column 1"> 414 || <.quibble($¢.cursor_fresh( ::STD::Q ))> {*} #= embedded 415 ] 412 [ <!after ^^ . > || <.panic: "Can't use embedded comments in column 1"> ] 413 <.quibble($¢.cursor_fresh( ::STD::Q ))> {*} #= embedded 416 414 | :: \N* {*} #= end 417 415 ] … … 735 733 { $+prevop = $<O> } 736 734 <.ws> 735 } 736 737 # (for when you want to tell EXPR that infix already parsed the term) 738 token nullterm { 739 <?> 737 740 } 738 741 … … 1453 1456 [ 1454 1457 || '&' <twigil>? <sublongname> {*} #= subnoun 1458 || <?before '$::('> '$' <name>? 1455 1459 || '$::' <name>? # XXX 1456 1460 || '$:' <name>? # XXX … … 1476 1480 token sigil:sym<%> { <sym> } 1477 1481 token sigil:sym<&> { <sym> } 1478 token sigil:sym<::> { <sym> }1479 1482 1480 1483 token twigil:sym<.> { <sym> } … … 1488 1491 1489 1492 token deflongname { 1490 <name> <colonpair>* 1491 {{ 1492 if $<colonpair> { 1493 $¢ = $¢.add_macro($<name>); 1494 } 1495 }} 1493 <name> 1494 [ <colonpair>+ { $¢ = $¢.add_macro($<name>); } ]? 1496 1495 } 1497 1496 … … 1555 1554 <longname> 1556 1555 <?{ 1557 $¢.is_type($<longname>.text) 1556 my $longname = $<longname>.text; 1557 substr($longname, 0, 2) eq '::' or $¢.is_type($longname) 1558 1558 }> 1559 1559 # parametric type? … … 1730 1730 [ <?{ $start ne $stop }> :: 1731 1731 { $lang = $lang.balanced($start,$stop); } 1732 $start <left=nibble($lang)> $stop '='<right=EXPR(item %item_assignment)>1732 $start <left=nibble($lang)> $stop <.ws> '='<.ws> <right=EXPR(item %item_assignment)> 1733 1733 || { $lang = $lang.unbalanced($stop); } 1734 1734 $start <left=nibble($lang)> $stop … … 1845 1845 token quote:sym</ /> { 1846 1846 '/' <nibble( $¢.cursor_fresh( ::Regex ).unbalanced("/") )> [ '/' || <.panic: "Unable to parse regex; couldn't find final '/'"> ] 1847 < old_rx_mods>?1847 <.old_rx_mods>? 1848 1848 } 1849 1849 … … 1889 1889 <sym> » <!before '('> 1890 1890 <quibble( $¢.cursor_fresh( ::Regex ) )> 1891 < old_rx_mods>?1891 <!old_rx_mods> 1892 1892 } 1893 1893 … … 1895 1895 <sym> » <!before '('> 1896 1896 <quibble( $¢.cursor_fresh( ::Regex ) )> 1897 < old_rx_mods>?1897 <!old_rx_mods> 1898 1898 } 1899 1899 … … 1901 1901 <sym> » <!before '('> 1902 1902 <quibble( $¢.cursor_fresh( ::Regex ).tweak(:s))> 1903 < old_rx_mods>?1903 <!old_rx_mods> 1904 1904 } 1905 1905 … … 1907 1907 <sym> » <!before '('> 1908 1908 <pat=sibble( $¢.cursor_fresh( ::Regex ), $¢.cursor_fresh( ::STD::Q ).tweak(:qq))> 1909 < old_rx_mods>?1909 <!old_rx_mods> 1910 1910 } 1911 1911 … … 1913 1913 <sym> » <!before '('> 1914 1914 <pat=sibble( $¢.cursor_fresh( ::Regex ).tweak(:s), $¢.cursor_fresh( ::STD::Q ).tweak(:qq))> 1915 < old_rx_mods>?1915 <!old_rx_mods> 1916 1916 } 1917 1917 token quote:tr { 1918 1918 <sym> » <!before '('> <pat=tribble( $¢.cursor_fresh( ::STD::Q ).tweak(:q))> 1919 < old_tr_mods>?1919 <!old_tr_mods> 1920 1920 } 1921 1921 … … 2582 2582 2583 2583 ## term 2584 2585 token term:sym<::?IDENT> ( --> Term) { 2586 $<sym> = [ '::?' <ident> ] » 2587 } 2588 2584 2589 token term:sym<undef> ( --> Term) { 2585 2590 <sym> » … … 3764 3769 3765 3770 method panic (Str $s) { 3766 my $m = "############# PARSE FAILED #############";3771 my $m; 3767 3772 my $here = self; 3768 3773 … … 3790 3795 if $highvalid { 3791 3796 $m ~= $*HIGHMESS if $*HIGHMESS; 3797 $*HIGHMESS = $m; 3792 3798 } 3793 3799 else { … … 3813 3819 } 3814 3820 3815 die $m ~ "\n";3821 die "############# PARSE FAILED #############" ~ $m ~ "\n"; 3816 3822 } 3817 3823 … … 3842 3848 my $orig = self.orig; 3843 3849 my $text = $$orig; 3844 while $text ne '' { 3850 while $text ne '' { # XXX needs to recognize #line? 3845 3851 $posprops.[$pos++]<line> = $line; 3846 3852 $line++ if substr($text,0,1,'') eq "\n"; -
src/perl6/gimme5
r21789 r21799 243 243 use strict; 244 244 use warnings; 245 no warnings 'qw' ;245 no warnings 'qw', 'recursion'; 246 246 use $extends; # for base class as well as DEBUG constants 247 247 use Moose ':all' => { -prefix => "moose_" }; -
src/perl6/teststd
r21769 r21799 24 24 } 25 25 26 print "Passed $success/$total, ", int $success/$total * 100, "%\n";26 printf "Passed $success/$total, %6.2f%%\n", $success/$total * 100; 27 27 print "Failed tests:\n"; 28 28 for my $file (@failed) {
