fglock / Perlito

"Perlito" Perl programming language compiler
http://fglock.github.io/Perlito/
Other
414 stars 47 forks source link

Error "Unexpected block after expression" #45

Open agentzh opened 7 years ago

agentzh commented 7 years ago

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!

fglock commented 7 years ago

Yes, you are using unimplemented features.

There are 2 problems:

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 notifications@github.com:

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 .