开发者

Example code for dynamic parsing techniques

开发者 https://www.devze.com 2022-12-14 06:35 出处:网络
I would like to learn how to write dynamic parsers to perform tasks such as code-completion, highlighting, etc.

I would like to learn how to write dynamic parsers to perform tasks such as code-completion, highlighting, etc.

I have read the dragon book and written some parsers, but I would like more experience with handling incorrect code, especially code as开发者_JAVA技巧 it is being written.

IDEs like Eclipse and NetBeans obviously include code for stuff like this, but where?

What other projects / books might be relevant?

LISP or functional examples are also welcome.


Take a look at http://www.antlr.org/.


Check out xtext. It uses an ANTLR parser behind the scenes, but generates a syntax-highlighting editor, content assist, outlining, and many other features for you.

See http://www.eclipse.org/Xtext/

0

精彩评论

暂无评论...
验证码 换一张
取 消