Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove non-builtins from deftrap
It clutters up deftrap, and a new Perl 6 user might attempt something
like 'stat', and when they get the error message and they try '.stat'
and don't get the result they expect, it could be very confusing.
  • Loading branch information
hoelzro committed Dec 13, 2014
1 parent 5a06ace commit 8677689
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Perl6/Grammar.nqp
Expand Up @@ -3141,12 +3141,11 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}

my %deftrap := nqp::hash(
'say', 1, 'print', 1, 'abs', 1, 'alarm', 1, 'chomp', 1, 'chop', 1, 'chr', 1, 'chroot', 1, 'cos', 1,
'defined', 1, 'eval', 1, 'exp', 1, 'glob', 1, 'lc', 1, 'log', 1, 'lstat', 1, 'mkdir', 1,
'ord', 1, 'readlink', 1, 'readpipe', 1, 'require', 1, 'reverse', 1, 'rmdir', 1, 'sin', 1,
'split', 1, 'sqrt', 1, 'stat', 1, 'uc', 1, 'unlink', 1,
'WHAT', 2, 'WHICH', 2, 'WHERE', 2, 'HOW', 2, 'WHENCE', 2, 'WHO', 2, 'VAR', 2,
'any', 2, 'all', 2, 'none', 2, 'one', 2, 'set', 2, 'bag', 2, 'tclc', 2, 'wordcase', 2,
'say', 1, 'print', 1, 'abs', 1, 'chomp', 1, 'chop', 1, 'chr', 1, 'cos', 1,
'defined', 1, 'exp', 1, 'lc', 1, 'log', 1, 'mkdir', 1, 'ord', 1, 'reverse', 1,
'rmdir', 1, 'sin', 1, 'split', 1, 'sqrt', 1, 'uc', 1, 'unlink', 1, 'WHAT', 2,
'WHICH', 2, 'WHERE', 2, 'HOW', 2, 'WHENCE', 2, 'WHO', 2, 'VAR', 2, 'any', 2,
'all', 2, 'none', 2, 'one', 2, 'set', 2, 'bag', 2, 'tclc', 2, 'wordcase', 2,
);

token term:sym<name> {
Expand Down

0 comments on commit 8677689

Please sign in to comment.