Perl5 to Java compiler - 2nd hackathon

We've had another hackathon at work. This time Bosko, Bruno, Frederico, Yati, and I hacked on the Perlito Perl5-to-Java compiler.

We started adding unit tests - so that we can automatically extract a list of implemented features; the existing Perl tests are not properly organized "by feature".

The latest additions to the Java backend are:

  • "local" and "our" keywords;
  • "sort", "map", and "grep" keywords;
  • "reverse" and "x" (replicate);
  • "for" loops;
  • "search/replace" regex;
  • allow import of Java classes like 'ArrayList<String>'
  • "@ARGV" and "%ENV"
  • a README file

Leave a comment

About Flávio S. Glock

user-pic I blog about Perl.