Book a Demo

Author Topic: Import parser extensibility  (Read 2513 times)

Xeal

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Import parser extensibility
« on: January 14, 2004, 10:14:51 pm »
Is there any possibility for the user to add a new language to the list of the imported languages?

For example I'm using ActionScript 2 which is quite similar to ECMAScript 4, so quite similar to Java, but still not similar enough to be able to decently import my '.as' files after I change their name to '.java' ;)
So I have to use all kind of regular expressions based search&replace in order to make them look like Java sources (I also managed to break EA build 657 in the process because I forgot to add ';' at the end of some variable declaration statements :)). And this conversion takes a lot of time and also makes the Forward Engineering process very difficult because I have to reconvert again :(

I saw in the EA folder some '*_syntax.xml' files, but I think they are used for syntax highlighting and not for importing the source code. Is there any possibility for the user to define the grammar for another language and EA to use it when importing? I think ArgoUML has something like this...

Thank you,
.x.