Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

philcrow (3401)

philcrow
  (email not shown publicly)

Journal of philcrow (3401)

Saturday June 09, 2007
11:20 AM

More work on emitting Perl 6 from Java

[ #33482 ]

I can't claim to have done a lot this week. But, I did create a factory mechanism for generation so you aren't tied to how I turn ASTs into Perl 6 code.

I also started work on the command line tool. It closely mimics the two operative tests. It needs more features and has no POD.

There is one issue I need to resolve for classes. Currently, I'm correctly generating interfaces. But, classes are slightly different.

For interfaces, I've decided that roles are the proper Perl 6 structure. That can't exactly work for classes. They need constructors, which roles are not allowed to have. Probably Java interfaces will become Perl 6 roles, while classes will map to classes.

Even if I decide to use Perl 6 classes for Java classes, I still have to figure out how to handle constructors in Perl 6. That will take some more study on my part. I'm not comfortable with sub method BUILD etc. yet.

Phil

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.