Changeset 23048
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r23025 r23048 220 220 sub _PARAMS {} # overridden in parametric role packages 221 221 222 use YAML:: XS;222 use YAML::Syck; 223 223 use Storable; 224 224 -
src/perl6/STD.pm
r23043 r23048 593 593 # "CHECK" time... 594 594 {{ 595 if @COMPILING::WORRIES { 596 warn "Potential difficulties:\n " ~ join( "\n ", @COMPILING::WORRIES) ~ "\n"; 597 } 598 595 599 my %UNKNOWN; 596 600 for keys(%ROUTINES) { -
src/perl6/gimme5
r23025 r23048 18 18 } 19 19 20 use YAML:: XS;20 use YAML::Syck; 21 21 22 22 our $SEQ = 0; … … 283 283 } 284 284 285 use YAML::XS; 286 #{ 287 # local $/; 288 # my $yaml = <DATA>; 289 # *::RE = Load($yaml); 290 #} 285 use YAML::Syck; 291 286 292 287 END … … 924 919 sub dumpretree { 925 920 if (%$RETREE) { 926 $out .= "BEGIN {\n \$retree = YAML:: XS::Load(<<'RETREE_END');\n";921 $out .= "BEGIN {\n \$retree = YAML::Syck::Load(<<'RETREE_END');\n"; 927 922 $out .= Encode::decode("utf8", Dump($RETREE)); 928 923 $out .= "RETREE_END\n}\n"; -
src/perl6/viv
r22824 r23048 62 62 } 63 63 } 64 USAGE() unless -r $_[0]; 65 my $r = STD->parsefile($_[0])->item; 64 # USAGE() unless -r $_[0]; 65 my $r; 66 if (@_ and -f $_[0]) { 67 $r = STD->parsefile($_[0])->item; 68 } 69 else { 70 my $prog; 71 { 72 local $/; 73 $prog = <>; 74 } 75 $r = STD->parse($prog)->item; 76 } 66 77 if ($output eq 'ast') { 67 78 print Dump($r);
