-
-
Notifications
You must be signed in to change notification settings - Fork 20
JVM Lang support #3
Comments
First of all, thank you... Secondly, I never write Groovy before, but as I search for it seems very similar to Java. So, in order to get Groovy support I may need to take a look (at least) how Groovy works (is it like Java or not?, did it required something that Java cannot do?) The reason that I support only .java files is because of some feature of Javatar can only works with .java file (like class corrections, organize imports) I will mark this as a enhancement and see how it's goes after I finish some works on organize imports (to be able to work on stable channel) :) |
Oops. I never saw you respond to this. Groovy is just another JVM language, but supports dynamic typing and some syntactic sugar. It's totally interoperable with Java - which is why I was posting this issue. I can take a look at adding Groovy support, but I'm curious - did you autogenerate the javatar-import files from somewhere, or did you have to create those manually from the javadocs? |
I plan to make Javatar more abstract so you can extend some functionalities in Javatar (just like custom Imports, JAR file export, etc.) but that would take some time. Basic support for Groovy is possible to be made at this moment but what I think which harder than that is method completion since Groovy can omit parenthesises and dots. Javatar imports will be replaced soon with a new format called "Javatar packages". Here is the differences between them...
I type Javatar imports myself with reference from Java SE7 JavaDoc but in Javatar packages, I write my own JavaDoc doclet which allow me to customize the format easier and also much faster to be update. If you want to create your own Javatar packages please check the JavatarDoclet in my repositories. JavatarDoclet will generate a .json file which you can prettify using Currently, I'm begin working on support a new format which is require some test since it will affect most part of a new features. Hope it went well! :D |
A new grammar parser should helps in this topic much easier. All I have to do is just created a grammar and named selectors properly. This should work properly in theoretically. We'll see... |
After many months of development and considerations, Javatar will support only Java on full release. After the release, I will rewrite the Javatar from the ground up again to gain more performances and to reduce sloppy code as much as possible. I will close this issue for now. And we will see how Javatar develop again after release... |
This package looks to have great promise, but I'm curious about other JVM language support. I was working within a Groovy file and got errors saying it wasn't a Java file (rightly so).
Are there plans to add JVM language support? I'd be happy to work on adding such functionality - if you see this as something you'd be interested in adding to the mix.
The text was updated successfully, but these errors were encountered: