New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error referencing non-ascii tokens on grammar #4957
Comments
From rubio.terra@gmail.comI can declare non-ascii tokens without problems on a grammar but I get an encoding error if I refer to the token using the <> syntax. This happens on MoarVM, it works fine on JVM. This runs OK: perl6 -c -e 'grammar { token TOP { <numero>+ }; token número {<< \d+ >>} }' Now, if I reference the new token (número) I get an error: perl6 -c -e 'grammar { token TOP { <número>+ }; token número {<< \d+ >>} }' The same code on JVM runs OK: perl6-j -c -e 'grammar { token TOP { <número>+ }; token número {<< \d+ >>} }' I'm running Linux Fedora 22. Both Rakudo 2015.11 and 2015.12 exhibit the error. |
From @lizmat
This looks like it is happening deep in the bowels of NQP: $ 6l 'grammar { token TOP { <número>+ } }' Hope somebody with NQP internals knowledge can pick this up. Liz |
The RT System itself - Status changed from 'new' to 'open' |
@coke - Status changed from 'open' to 'new' |
From @MasterDuke17Fixed in Raku/nqp@4fd4b48 and rakudo/rakudo@20ed9e2e2c Tests added in Raku/roast@e82a3df483 |
The RT System itself - Status changed from 'new' to 'open' |
@AlexDaniel - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127075 (status was 'resolved')
Searchable as RT127075$
The text was updated successfully, but these errors were encountered: