Author Topic: pearl  (Read 3191 times)

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
pearl
« on: December 23, 2004, 12:59:54 am »
is code generation planned for pearl also in the future?
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: pearl
« Reply #1 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

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: pearl
« Reply #2 on: December 25, 2004, 11:00:43 pm »
good idea!

Thanks
Recursion definition:
If you don’t understand the definition read "Recursion definition".