Skip to content

Commit

Permalink
Rename all .pm6 files to .rakumod
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 28, 2023
1 parent def3a4a commit 81d2aa6
Show file tree
Hide file tree
Showing 288 changed files with 528 additions and 528 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

# lib/ source files
for $dist.meta<provides>.kv -> $name, $file is copy {
# $name is "Inline::Perl5" while $file is "lib/Inline/Perl5.pm6"
# $name is "Inline::Perl5" while $file is "lib/Inline/Perl5.rakumod"
my $id = self!file-id(~$name, $dist-id);
my $destination = $sources-dir.add($id);
my $handle = $dist.content($file);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ my class Encoding::Registry {

BEGIN {
my $lookup := nqp::bindattr(%lookup,Map,'$!storage',nqp::hash);
### If updating encodings here, also update src/core.c/Rakudo/Internals.pm6
### If updating encodings, also update src/core.c/Rakudo/Internals.rakumod
my $encodings := nqp::list(
nqp::list('utf8', 'utf-8'),
nqp::list('utf8-c8', 'utf8c8', 'utf-8-c8'),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/core.c/Mu.pm6 → src/core.c/Mu.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ my class Mu { # declared in BOOTSTRAP
method take {
take self;
}
method return-rw(Mu \SELF: |) { # same code as control.pm6's return-rw
method return-rw(Mu \SELF: |) { # same code as control.rakumod's return-rw
my $list := RETURN-LIST(nqp::p6argvmarray());
nqp::throwpayloadlexcaller(nqp::const::CONTROL_RETURN, $list);
$list;
}
method return(|) { # same code as control.pm6's return
method return(|) { # same code as control.rakumod's return
my $list := RETURN-LIST(nqp::p6argvmarray());
nqp::throwpayloadlexcaller(nqp::const::CONTROL_RETURN, nqp::p6recont_ro($list));
$list;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core.c/Numeric.pm6 → src/core.c/Numeric.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ multi sub infix:</>(\a, \b) { a.Numeric / b.Numeric }
my constant &infix:<÷> = &infix:</>;

proto sub infix:<div>($, $, *%) is pure {*}
# rest of infix:<div> is in Int.pm6
# rest of infix:<div> is in Int.rakumod

proto sub infix:<%>($?, $?, *%) is pure {*}
multi sub infix:<%>() { "infix:<%>".no-zero-arg }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ my class Rakudo::Internals {
Nil
}
# Fast mapping for identicals
### If updating encodings here, also update src/core.c/Encoding/Registry.pm6
### If updating encodings, also update src/core.c/Encoding/Registry.rakumod
#?if !js
my constant $encodings = nqp::hash(
#?endif
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core.c/Rational.pm6 → src/core.c/Rational.rakumod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# stub of this role is also present in Numeric.pm6; be sure to update
# stub of this role is also present in Numeric.rakumod; be sure to update
# definition there as well, if changing this one
my role Rational[::NuT = Int, ::DeT = ::("NuT")] does Real {
has NuT $.numerator;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core.c/Str.pm6 → src/core.c/Str.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -3712,7 +3712,7 @@ multi sub infix:<~>(Str:D $a, Any:D \b --> Str:D) {
Str
)
}
# Any/Any candidate in src/core.c/Stringy.pm6
# Any/Any candidate in src/core.c/Stringy.rakumod

multi sub infix:<~>(str @args --> str) { nqp::join('',@args) }
multi sub infix:<~>(@args) { @args.join }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# continued from src/core.c/Supply-factories.pm6
# continued from src/core.c/Supply-factories.rakumod

##
## Coercions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# continued from src/core.c/Supply.pm6
# continued from src/core.c/Supply.rakumod

## Supply factories
##
Expand Down Expand Up @@ -719,6 +719,6 @@
}
}

# continued in src/core.c/Supply-coercers.pm6
# continued in src/core.c/Supply-coercers.rakumod

# vim: expandtab shiftwidth=4
2 changes: 1 addition & 1 deletion src/core.c/Supply.pm6 → src/core.c/Supply.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ my class Supply does Awaitable {
self.sanitize.tap(&actor, |%others)
}

# continued in src/core.c/Supply-factories.pm6
# continued in src/core.c/Supply-factories.rakumod

# vim: expandtab shiftwidth=4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core.c/Variable.pm6 → src/core.c/Variable.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ my class X::Comp::Trait::Unknown { ... };
my class X::Comp::Trait::NotOnNative { ... };
my class X::Comp::Trait::Scope { ... };

# Variable traits come here, not in traits.pm6, since we declare Variable
# Variable traits come here, not in traits.rakumod, since we declare Variable
# in the setting rather than BOOTSTRAP.

my class Variable {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/core.c/operators.pm6 → src/core.c/operators.rakumod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## miscellaneous operators can go here.
## generic numeric operators are in Numeric.pm6
## generic string operators are in Stringy.pm6
## Int/Rat/Num operators are in {Int|Rat|Num}.pm6
## generic numeric operators are in Numeric.rakumod
## generic string operators are in Stringy.rakumod
## Int/Rat/Num operators are in {Int|Rat|Num}.rakumod

# infix:<=> only exists to allow it to be referenced as an operator in
# meta-operator usage. You cannot add other candidates for it. Therefore
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tools/add-leap-second.raku
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use v6.c;
sub MAIN(
#| the date for which to add a leap second
Str $the-date,
#| the source file containing leap second logic (default: src/core.c/Rakudo/Internals.pm6)
$the-source = 'src/core.c/Rakudo/Internals.pm6'
#| the source file containing leap second logic (default: src/core.c/Rakudo/Internals.rakumod)
$the-source = 'src/core.c/Rakudo/Internals.rakumod'
) {

# set up the new leap second info
Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeARRAY_SLICE_ACCESS.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the Array/Slice.pm6 file, and generates the
# This script reads the Array/Slice.rakumod file, and generates the
# necessary classes for inclusion in the postcircumfix:<[ ]> table
# for accessing array slices, and writes it back to the file.
#
Expand All @@ -21,7 +21,7 @@ my $start = '#- start of generated part of array slice access';
my $end = '#- end of generated part of array slice access';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Array/Slice.pm6";
my $filename = "src/core.c/Array/Slice.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeARRAY_SLICE_ASSIGN.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the Array/Slice.pm6 file, and generates the
# This script reads the Array/Slice.rakumod file, and generates the
# necessary classes for inclusion in the postcircumfix:<[ ]> table
# for assigning array slices, and writes it back to the file.
#
Expand All @@ -21,7 +21,7 @@ my $start = '#- start of generated part of array slice assignment';
my $end = '#- end of generated part of array slice assignment';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Array/Slice.pm6";
my $filename = "src/core.c/Array/Slice.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeARRAY_SLICE_BIND.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the Array/Slice.pm6 file, and generates the
# This script reads the Array/Slice.rakumod file, and generates the
# necessary classes for inclusion in the postcircumfix:<[ ]> table
# for binding array slices, and writes it back to the file.
#
Expand All @@ -21,7 +21,7 @@ my $start = '#- start of generated part of array slice binding';
my $end = '#- end of generated part of array slice binding';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Array/Slice.pm6";
my $filename = "src/core.c/Array/Slice.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeBLOB_ROLES.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the intarray,
# This script reads the native_array.rakumod file, and generates the intarray,
# numarray and strarray roles in it, and writes it back to the file.

# always use highest version of Raku
Expand All @@ -14,7 +14,7 @@ my $idchars = 3;
my $end = '#- end of generated part of Blob ';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Buf.pm6";
my $filename = "src/core.c/Buf.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeBUF_ROLES.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the intarray,
# This script reads the native_array.rakumod file, and generates the intarray,
# numarray and strarray roles in it, and writes it back to the file.

# always use highest version of Raku
Expand All @@ -14,7 +14,7 @@ my $idchars = 3;
my $end = '#- end of generated part of Buf ';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Buf.pm6";
my $filename = "src/core.c/Buf.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
2 changes: 1 addition & 1 deletion tools/build/makeHTML-ENTITIES.raku
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ my $start := '#- start of generated part of HTML entities';
my $end := '#- end of generated part of HTML entities';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/RakuAST/HTML/Entities.pm6";
my $filename = "src/core.c/RakuAST/HTML/Entities.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
2 changes: 1 addition & 1 deletion tools/build/makeMAGIC_INC_DEC.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the Rakudo/Internals.pm6 file from STDIN, and generates
# This script reads the Rakudo/Internals.rakumod file from STDIN, and generates
# the necessary lookup hashes for making magic Str .succ / .pred work, and
# writes it to STDOUT.

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeNATIVE_ARRAY.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the intarray,
# This script reads the native_array.rakumod file, and generates the intarray,
# numarray and strarray roles in it, and writes it back to the file.

# always use highest version of Raku
Expand All @@ -14,7 +14,7 @@ my $idchars = 3;
my $end = '#- end of generated part of ';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/native_array.pm6";
my $filename = "src/core.c/native_array.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeNATIVE_CANDIDATES.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the
# This script reads the native_array.rakumod file, and generates the
# intarray, numarray and strarray postcircumfix candidates and
# writes it back to the file.

Expand Down Expand Up @@ -54,7 +54,7 @@ my %type_mapper = (
);

# slurp the whole file and set up writing to it
my $filename = "src/core.c/native_array.pm6";
my $filename = "src/core.c/native_array.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeNATIVE_SHAPED1_CANDIDATES.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the
# This script reads the native_array.rakumod file, and generates the
# shaped1intarray, shaped1numarray and shaped1strarray postcircumfix
# candidates and writes it back to the file.

Expand Down Expand Up @@ -46,7 +46,7 @@ my %type_mapper = (
);

# slurp the whole file and set up writing to it
my $filename = "src/core.c/native_array.pm6";
my $filename = "src/core.c/native_array.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeNATIVE_SHAPED_ARRAY.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the native_array.pm6 file, and generates the
# This script reads the native_array.rakumod file, and generates the
# shapedintarray, shapednumarray and shapedstrarray roles in it, and writes
# it back to the file.

Expand All @@ -16,7 +16,7 @@ my $end = '#- end of generated part of shaped';
my %null = str => '""', int => "0", num => "0e0", uint => "0";

# slurp the whole file and set up writing to it
my $filename = "src/core.c/native_array.pm6";
my $filename = "src/core.c/native_array.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeNATIVE_SORTING.raku
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env raku

# This script reads the Rakudo/Sorting.pm6 file, generates the
# This script reads the Rakudo/Sorting.rakumod file, generates the
# logic to sort a native str, int, uint num array in place, and
# writes it back to the file.

Expand All @@ -15,7 +15,7 @@ my $idchars = 3;
my $end = '#- end of generated part of sorting ';

# slurp the whole file and set up writing to it
my $filename = "src/core.c/Rakudo/Sorting.pm6";
my $filename = "src/core.c/Rakudo/Sorting.rakumod";
my @lines = $filename.IO.lines;
$*OUT = $filename.IO.open(:w);

Expand Down
4 changes: 2 additions & 2 deletions tools/build/makeSLICE.raku
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env raku

# This script generates the logic for doing adverbed slices, usually part of
# the core settings as "src/core/SLICE.pm6". When run, it will generate the
# source code on STDOUT.
# the core settings as "src/core/SLICE.rakumod". When run, it will generate
# the source code on STDOUT.

use v6;

Expand Down
Loading

0 comments on commit 81d2aa6

Please sign in to comment.