Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove tokens which are methods or subs

  • Loading branch information...
commit 9b86017d3c8a2fa7e384576e532a110602399992 1 parent 302e259
Tobias Leich FROGGS authored
Showing with 162 additions and 244 deletions.
  1. +0 −82 lib/Perl6/P5Actions.pm
  2. +162 −162 lib/Perl6/P5Grammar.pm
82 lib/Perl6/P5Actions.pm
View
@@ -3802,88 +3802,6 @@ class Perl6::P5Actions is HLL::Actions does STDActions {
make $past;
}
- # XXX stubs
- method term:sym<abs>($/) { make $<value>.ast; }
- method term:sym<alarm>($/) { make $<value>.ast; }
- method term:sym<chop>($/) { make $<value>.ast; }
- method term:sym<chdir>($/) { make $<value>.ast; }
- method term:sym<close>($/) { make $<value>.ast; }
- method term:sym<closedir>($/) { make $<value>.ast; }
- method term:sym<caller>($/) { make $<value>.ast; }
- method term:sym<chr>($/) { make $<value>.ast; }
- method term:sym<cos>($/) { make $<value>.ast; }
- method term:sym<chroot>($/) { make $<value>.ast; }
- method term:sym<defined>($/) { make $<value>.ast; }
- method term:sym<delete>($/) { make $<value>.ast; }
- method term:sym<dbmclose>($/) { make $<value>.ast; }
- method term:sym<exists>($/) { make $<value>.ast; }
- method term:sym<int>($/) { make $<value>.ast; }
- method term:sym<exit>($/) { make $<value>.ast; }
- method term:sym<try>($/) { make $<value>.ast; }
- method term:sym<eval>($/) { make $<value>.ast; }
- method term:sym<eof>($/) { make $<value>.ast; }
- method term:sym<exp>($/) { make $<value>.ast; }
- method term:sym<each>($/) { make $<value>.ast; }
- method term:sym<fileno>($/) { make $<value>.ast; }
- method term:sym<gmtime>($/) { make $<value>.ast; }
- method term:sym<getc>($/) { make $<value>.ast; }
- method term:sym<getpgrp>($/) { make $<value>.ast; }
- method term:sym<getpbyname>($/) { make $<value>.ast; }
- method term:sym<getpwnam>($/) { make $<value>.ast; }
- method term:sym<getpwuid>($/) { make $<value>.ast; }
- method term:sym<getpeername>($/) { make $<value>.ast; }
- method term:sym<gethostbyname>($/) { make $<value>.ast; }
- method term:sym<getnetbyname>($/) { make $<value>.ast; }
- method term:sym<getsockname>($/) { make $<value>.ast; }
- method term:sym<getgroupnam>($/) { make $<value>.ast; }
- method term:sym<getgroupgid>($/) { make $<value>.ast; }
- method term:sym<hex>($/) { make $<value>.ast; }
- method term:sym<keys>($/) { make $<value>.ast; }
- method term:sym<lc>($/) { make $<value>.ast; }
- method term:sym<lcfirst>($/) { make $<value>.ast; }
- method term:sym<length>($/) { make $<value>.ast; }
- method term:sym<localtime>($/) { make $<value>.ast; }
- method term:sym<log>($/) { make $<value>.ast; }
- method term:sym<lock>($/) { make $<value>.ast; }
- method term:sym<lstat>($/) { make $<value>.ast; }
- method term:sym<ord>($/) { make $<value>.ast; }
- method term:sym<oct>($/) { make $<value>.ast; }
- method term:sym<prototype>($/) { make $<value>.ast; }
- method term:sym<pop>($/) { make $<value>.ast; }
- method term:sym<pos>($/) { make $<value>.ast; }
- method term:sym<quotemeta>($/) { make $<value>.ast; }
- method term:sym<reset>($/) { make $<value>.ast; }
- method term:sym<rmdir>($/) { make $<value>.ast; }
- method term:sym<readdir>($/) { make $<value>.ast; }
- method term:sym<readline>($/) { make $<value>.ast; }
- method term:sym<backtick>($/) { make $<value>.ast; }
- method term:sym<rewinddir>($/) { make $<value>.ast; }
- method term:sym<readlink>($/) { make $<value>.ast; }
- method term:sym<ref>($/) { make $<value>.ast; }
- method term:sym<chomp>($/) { make $<value>.ast; }
- method term:sym<scalar>($/) { make $<value>.ast; }
- method term:sym<sethostent>($/) { make $<value>.ast; }
- method term:sym<setnetent>($/) { make $<value>.ast; }
- method term:sym<setservent>($/) { make $<value>.ast; }
- method term:sym<setprotoent>($/) { make $<value>.ast; }
- method term:sym<shift>($/) { make $<value>.ast; }
- method term:sym<sin>($/) { make $<value>.ast; }
- method term:sym<sleep>($/) { make $<value>.ast; }
- method term:sym<sqrt>($/) { make $<value>.ast; }
- method term:sym<srand>($/) { make $<value>.ast; }
- method term:sym<stat>($/) { make $<value>.ast; }
- method term:sym<study>($/) { make $<value>.ast; }
- method term:sym<tell>($/) { make $<value>.ast; }
- method term:sym<telldir>($/) { make $<value>.ast; }
- method term:sym<tied>($/) { make $<value>.ast; }
- method term:sym<uc>($/) { make $<value>.ast; }
- method term:sym<ucfirst>($/) { make $<value>.ast; }
- method term:sym<untie>($/) { make $<value>.ast; }
- method term:sym<values>($/) { make $<value>.ast; }
- method term:sym<write>($/) { make $<value>.ast; }
- method term:sym<local>($/) { make $<value>.ast; }
- method term:sym<filetest>($/) { make $<value>.ast; }
-
method circumfix:sym<( )>($/) {
my $past := $<semilist>.ast;
my $size := +$past.list;
324 lib/Perl6/P5Grammar.pm
View
@@ -3137,251 +3137,251 @@ grammar Perl6::P5Grammar is HLL::Grammar does STD5 {
## named unary examples
# (need \s* to win LTM battle with listops)
- token term:sym<abs>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<abs>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<alarm>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<alarm>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<chop>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<chop>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<chdir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<chdir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<close>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<close>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<closedir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<closedir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<caller>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<caller>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<chr>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<chr>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<cos>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<cos>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<chroot>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<chroot>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<defined>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<defined>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<delete>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<delete>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<dbmclose>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<dbmclose>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<exists>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<exists>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<int>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<int>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<exit>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<exit>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<try>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<try>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<eval>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<eval>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<eof>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<eof>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<exp>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<exp>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<each>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<each>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<fileno>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<fileno>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<gmtime>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<gmtime>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getc>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getc>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getpgrp>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getpgrp>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getpbyname>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getpbyname>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getpwnam>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getpwnam>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getpwuid>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getpwuid>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getpeername>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getpeername>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<gethostbyname>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<gethostbyname>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getnetbyname>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getnetbyname>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getsockname>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getsockname>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getgroupnam>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getgroupnam>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<getgroupgid>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<getgroupgid>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<hex>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<hex>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<keys>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<keys>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<lc>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<lc>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<lcfirst>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<lcfirst>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<length>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<length>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<localtime>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<localtime>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<log>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<log>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<lock>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<lock>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<lstat>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<lstat>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<ord>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<ord>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<oct>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<oct>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<prototype>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<prototype>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<pop>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<pop>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<pos>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<pos>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<quotemeta>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<quotemeta>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<reset>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<reset>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<rand>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<rand>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<rmdir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<rmdir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<readdir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<readdir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<readline>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<readline>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<backtick>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<backtick>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<rewinddir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<rewinddir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<readlink>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<readlink>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<ref>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<ref>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<chomp>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<chomp>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<scalar>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<scalar>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<sethostent>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<sethostent>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<setnetent>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<setnetent>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<setservent>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<setservent>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<setprotoent>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<setprotoent>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
# token term:sym<shift>
# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<sin>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<sin>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<sleep>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<sleep>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<sqrt>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<sqrt>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<srand>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<srand>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<stat>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<stat>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<study>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<study>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<tell>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<tell>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<telldir>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<telldir>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<tied>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<tied>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<uc>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<uc>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<ucfirst>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<ucfirst>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<undef>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<undef>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<untie>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<untie>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<values>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<values>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<write>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<write>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<local>
- { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<local>
+# { <sym> » <?before \s*> <.ws> <EXPR('q=')>? }
- token term:sym<filetest>
- { '-'<[a..zA..Z]> » <?before \s*> <.ws> <EXPR('q=')>? }
+# token term:sym<filetest>
+# { '-'<[a..zA..Z]> » <?before \s*> <.ws> <EXPR('q=')>? }
## comparisons
token infix:sym«<=>»
Please sign in to comment.
Something went wrong with that request. Please try again.