Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

JVM Lang support #3

Closed
robzienert opened this issue Dec 3, 2013 · 5 comments
Closed

JVM Lang support #3

robzienert opened this issue Dec 3, 2013 · 5 comments

Comments

@robzienert
Copy link

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.

@spywhere
Copy link
Owner

spywhere commented Dec 4, 2013

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) :)

@robzienert
Copy link
Author

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?

@spywhere
Copy link
Owner

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...

Feature Imports Packages
Allow Organize Imports? Yes Yes
Allow Method Completion? No Yes
Allow Custom Imports to be customized? No Yes
Easier to update? No Yes

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 Development Section -> Prettify JSON.

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

@spywhere
Copy link
Owner

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...

@spywhere
Copy link
Owner

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants