Skip to content

Commit

Permalink
remove rational number literal fossile
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 26, 2010
1 parent 4e3d29d commit bafb6d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/Perl6/Actions.pm
Expand Up @@ -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'),
Expand Down
1 change: 0 additions & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -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> }

Expand Down

0 comments on commit bafb6d9

Please sign in to comment.