Embedded DSL support

"Klaus Martinschitz" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hello,

I use the Netbeans JavaCC plugin very often. However, it misses a lot of features, such as parsing, code completion etc. Therefore, I want to write a new JavaCC plugin. The syntax of the domain specific language (DSL) of JavaCC is not the problem. The problem is, that JavaCC code wraps Java code. I would be interessted if there is a possibility in Netbeans DSL modules to tell Netbeans: "if you come here, use the formatting options, parser, lexer etc. that is available for language X, in this case Java". I do not want to write a complete Java lexer and parser again. I think there must be a possibility to embedd the Java DSL in the JavaCC DSL. Perhaps, some can give me a hint how this could work.
Thanks.

Regards,
Klaus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.