Perlito
Perlito copied to clipboard
Error "Unexpected block after expression"
I ran into a compile-time error while trying to compile my simple Perl 6 calculator script below:
https://raw.githubusercontent.com/agentzh/perl-parsing-library-benchmark/master/calc-Rakudo.p6
I'm using the latest master of Perlito as of this writing (commit b22ea5125cf9b0ae934caa163a942e28cf96360b).
Rakudo perl6 compiles the script quite right. Am I running into anything that is not currently supported by Perlito? I hope the error message could have been more friendly :) Thanks!
Yes, you are using unimplemented features.
There are 2 problems:
- Perlito6 implements an old Perl6 specification;
- Perlito6 grammars are pretty simple.
The development of Perlito has been focusing on implementing a "Perl5". A lot of stuff needs to be done in the Perl6 subproject.
Here is a Perl6 grammar as it currently works in Perlito6 - you can see it uses a limited set of constructs, and you might find some expressions that are now obsolete in Perl6:
https://github.com/fglock/Perlito/blob/master/src6/lib/Perlito6/Grammar.pm
2017-01-02 20:06 GMT+01:00 Yichun Zhang [email protected]:
I ran into a compile-time error while trying to compile my simple Perl 6 calculator script below:
https://raw.githubusercontent.com/agentzh/perl-parsing- library-benchmark/master/calc-Rakudo.p6
I'm using the latest master of Perlito as of this writing (commit b22ea51 https://github.com/fglock/Perlito/commit/b22ea5125cf9b0ae934caa163a942e28cf96360b ).
Rakudo perl6 compiles the script quite right. Am I running into anything that is not currently supported by Perlito? I hope the error message could have been more friendly :) Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fglock/Perlito/issues/45, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ1O6xQ2TMgdD1AObTixIETit_KetUWks5rOUq3gaJpZM4LZKwU .