Home » Language IDEs » Java Development Tools (JDT) » Reuse Java components (parser, auto completion, ...) for composite language
Reuse Java components (parser, auto completion, ...) for composite language [message #841499] |
Wed, 11 April 2012 07:49  |
Eclipse User |
|
|
|
Hello,
I am developing a language which partially uses Java and some other languages. Now an important aspect is the tooling for the language. Is it possible to reuse some of the components already implemented in eclipse for java? That means, consider for example the following language:
public class MyClass {
public void method(String table, String col, int val) {
sql {
INSERT INTO table (col) values (val);
}
}
}
The example shows a Java class with a method. This all is plain Java. Inside the method is a sql-Statement. I now liked to reuse all (or most of) the tooling support that Eclipse usually offers for Java. That means for example, if I am not in the context of sql { ... } auto completion etc. should still be supported.
Is this possible? If yes, what next steps should I do (which docs to read?)
Thanks in advance
P
|
|
| |
Re: Reuse Java components (parser, auto completion, ...) for composite language [message #841567 is a reply to message #841499] |
Wed, 11 April 2012 09:27   |
Eclipse User |
|
|
|
XBase provides the foundation to embed java into your custom language.
I'd suggest you take a look at Xtext and Xbase (respectively their Xtend
language which is implemented on top of it - it even integrates into the
JDT-Debug stuff, ....)
Tom
Am 11.04.12 13:49, schrieb P N:
> Hello,
>
> I am developing a language which partially uses Java and some other
> languages. Now an important aspect is the tooling for the language. Is
> it possible to reuse some of the components already implemented in
> eclipse for java? That means, consider for example the following language:
>
>
> public class MyClass {
>
> public void method(String table, String col, int val) {
> sql {
> INSERT INTO table (col) values (val);
> }
>
> }
> }
>
>
>
> The example shows a Java class with a method. This all is plain Java.
> Inside the method is a sql-Statement. I now liked to reuse all (or most
> of) the tooling support that Eclipse usually offers for Java. That
> means for example, if I am not in the context of sql { ... } auto
> completion etc. should still be supported.
>
> Is this possible? If yes, what next steps should I do (which docs to read?)
>
> Thanks in advance
>
> P
>
|
|
| | |
Goto Forum:
Current Time: Wed Jul 23 17:06:22 EDT 2025
Powered by FUDForum. Page generated in 0.08154 seconds
|