Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove rational number literal fossile

  • Loading branch information...
commit bafb6d95ed74f6272fc91997722de560dd0ce81a 1 parent 4e3d29d
@moritz moritz authored
Showing with 0 additions and 9 deletions.
  1. +0 −8 src/Perl6/Actions.pm
  2. +0 −1  src/Perl6/Grammar.pm
View
8 src/Perl6/Actions.pm
@@ -2272,14 +2272,6 @@ method value:sym<number>($/) {
make $<number>.ast;
}
-method number:sym<rational>($/) {
- make PAST::Op.new(
- :pasttype('callmethod'), :name('new'),
- PAST::Var.new( :name('Rat'), :namespace(''), :scope('package') ),
- $<nu>.ast, $<de>.ast
- );
-}
-
method number:sym<complex>($/) {
make PAST::Op.new(
:pasttype('callmethod'), :name('new'),
View
1  src/Perl6/Grammar.pm
@@ -1220,7 +1220,6 @@ token value:sym<quote> { <quote> }
token value:sym<number> { <number> }
proto token number { <...> }
-token number:sym<rational> { <nu=.integer>'/'<de=.integer> }
token number:sym<complex> { <im=.numish>'\\'?'i' }
token number:sym<numish> { <numish> }
Please sign in to comment.
Something went wrong with that request. Please try again.