Re: Re: Embedded Language Question

2023-01-09 Thread Eric Bresie
Not sure if this helps but here is wiki page in adding new languages that may help. https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=173084490#content/view/173084490 Eric Bresie ebre...@gmail.com (mailto:ebre...@gmail.com) > On January 9, 2023 at 1:01:13 AM CST, Michael Bien

Re: Embedded Language Question

2023-01-08 Thread Michael Bien
this might be of interest for some here: https://github.com/apache/netbeans/pull/4885 dependent on the usecase this might be a quick && elegant way to embed other languages. -mbien On 08.01.23 21:59, Oliver Rettig wrote: Hi, I am also interested in such functionality to put code written in

Re: Embedded Language Question

2023-01-08 Thread Oliver Rettig
Hi, maybe I have not correctly understand what "Admin Netcrystals" wants to do and it is not the same what I am interested. ok, we are both interested in embedding a new language. My specific interest is to embed code written in my new language into a java source file. Similar things with emb

Re: Embedded Language Question

2023-01-08 Thread Laszlo Kishalmi
??? On 1/8/23 20:47, Tim de Vries wrote: If I had to weigh in, it would be nice to be able to contribute some of the code I don’t understand. I would like to be able to provide, for example, class and method names from jars, similar to IntelliJ, but for all on classpath. There will probab

Re: Embedded Language Question

2023-01-08 Thread Tim de Vries
If I had to weigh in, it would be nice to be able to contribute some of the code I don’t understand. I would like to be able to provide, for example, class and method names from jars, similar to IntelliJ, but for all on classpath. There will probably always be straggler jars. Also, stoppin

Re: Embedded Language Question

2023-01-08 Thread Oliver Rettig
Hi, I am also interested in such functionality to put code written in our DSLs into java source code. In the meantime we put the code in extra files with specific filesuffix and use the netbeans api for syntax highlighting etc. best regards Oliver > Hi, > I have got a question regarding the em

Re: Embedded Language Question

2023-01-08 Thread Laszlo Kishalmi
Here is a sample of Language embedding: https://github.com/apache/netbeans/blob/40c25f50231290122f559a4f598624843662ee32/java/languages.antlr/src/org/netbeans/modules/languages/antlr/AntlrTokenId.java#L70 However this one only takes care of the Lexer, other features needs more code. You can che

Embedded Language Question

2023-01-08 Thread Admin Netcrystals
Hi,I have got a question regarding the embedded language support of Netbeans.If I write my own grammer/dsl with JavaCC and my language contains a specific tag that marks the beginning and ending of an embedded language, lets say Java, does Netbeans automatically take Lexer