I recommend ANTLR over JavaCC for new projects (I've used both). ANTLR is a 
very good-quality library.

You can use the following adapter class to hook ANTLR’s 
org.antlr.v4.runtime.CharStream interface up to NetBeans’ 
org.netbeans.spi.lexer.LexerInput interface:

https://gist.github.com/eirikbakke/51cf4c9375880acd4741

— Eirik

-----Original Message-----
From: Mario Schroeder <[email protected]> 
Sent: Tuesday, October 30, 2018 3:37 PM
To: [email protected]
Subject: recommendation for language support

Hi,

I would appreciate when someone could set me on the right track. I'm wondering 
what is the best way to write a plugin with a support for a new language.

I have found this old tutorial:
http://wiki.netbeans.org/How_to_create_support_for_a_new_language
It uses JavaCC. The tutorial is linked to another one, which makes use of 
ANTLR. When I have a look at NetBeans source code, there are some templates 
written with JFlex. So I'm confused. Which one should I use?

I would prefer ANTLR, since there seems to be more documentation for it.
Does anyone have a recommendation?

Regards,
Mario

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Reply via email to