Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restrict <unum> matching to moar.
NQP-J doesn't have (proper) getuniprop_str or unipropcode yet, so we work
around that.
  • Loading branch information
peschwa committed Nov 25, 2015
1 parent 6313051 commit 6ca14ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -6591,8 +6591,8 @@ Compilation unit '$file' contained the following violations:
make $qast;
}

my $nuprop := nqp::unipropcode("NumericValueNumerator");
my $deprop := nqp::unipropcode("NumericValueDenominator");
my $nuprop := nqp::existskey(nqp::backendconfig(), 'moarlib') ?? nqp::unipropcode("NumericValueNumerator") !! '';
my $deprop := nqp::existskey(nqp::backendconfig(), 'moarlib') ?? nqp::unipropcode("NumericValueDenominator") !! '';

method numish($/) {
if $<integer> {
Expand Down
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -3282,7 +3282,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
| 'Inf' >>
| '+Inf' >>
| '-Inf' >>
| <unum=:No+:Nl>
| <?{ nqp::existskey(nqp::backendconfig(), 'moarlib') }> <unum=:No+:Nl>
]
}

Expand Down

0 comments on commit 6ca14ad

Please sign in to comment.