Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Martin Terreni on December 23, 2004, 12:59:54 am

Title: pearl
Post by: Martin Terreni on December 23, 2004, 12:59:54 am
is code generation planned for pearl also in the future?
Title: Re: pearl
Post by: Eve on December 23, 2004, 01:49:17 pm
We currently don't have any plans to support Perl.  You can however write templates to generate Perl in the code template framework.

First you will need to define perl as a language by adding at least one datatype for perl.  I guess I would add datatypes for scalar, list and hash.

Then you can go about writing the templates.  I would suggest starting with the file and then adding templates for classes, attributes, methods and parameters adding detail bit by bit and doing lots of small tests to make sure that each part you add does what you expect.  (But then I suppose that anyone who knows programming should know that.)

There's plenty in the help about writing/editing code templates and the default templates provided with EA are good examples.

At some point (hopefully not too far away) you'll be able to write a grammar so that you can have reverse engineering and synchronisation too.

Simon
Title: Re: pearl
Post by: Martin Terreni on December 25, 2004, 11:00:43 pm
good idea!

Thanks