English 中文(简体)
与 ANTLR 一起使用的日食源代码编辑器插件
原标题:eclipse source code editor plugin to use with ANTLR

我用ANTLR框架创造了我的新编程语言。 语言由语法定义,语义则使用横穿AST的树漫步器强制使用。

I want to develop an eclipse plugin to serve as a source code editor to write programs in my new language. For example I would like to highlight keywords, mark lines with syntactic/semantic errors, etc.

What is the best way to approach this? Anyone knows of any lib/framework which integrates easily with ANTLR to do this?

谢谢

最佳回答

我建议""http://www.eclipse.org/Xtext/"rel="nofollow">Xtext 框架,它以ANTRR + EMF 为基础。

问题回答

Eclipse < a href="""http://www.eclipse.org/dltk/"rel="nolfollow">dltk 插件将是这方面的更好的选择。





相关问题
ANTLR parser hanging at proxy.handshake call

I am attempting to get a basic ECMAScript parser working, and found a complete ANTLR grammar for ECMAScript 3, which appears to compile ok and produces the appropriate Lexer/Parser/Walker Java files. (...

Will ANTLR Help? Different Suggestion?

Before I dive into ANTLR (because it is apparently not for the faint of heart), I just want to make sure I have made the right decision regarding its usage. I want to create a grammar that will parse ...

How to use ANTLR to parse xml document

can anybody tell how to use ANTLR tool(in java) to create our own grammar for xml documents and how to parse those documents using ANTLR tool(in java)?

JavaCC Problem - Generated code doesn t find all parse errors

Just started with JavaCC. But I have a strange behaviour with it. I want to verify input int the form of tokens (letters and numbers) wich are concatenated with signs (+, -, /) and wich can contain ...

How to generate introductory recognizer using ANTLR3C?

The Definitive ANTLR Guide starts with a simple recognizer. Using grammar verbatim to target C-runtime fails because %s means something to ANTLR: $ cat T.g grammar T; options { language = ...

What s the matter with this Grammar?

grammar Test; IDHEAD: ( a .. z | A .. Z | _ ); IDTAIL: (IDHEAD | 0 .. 9 ); ID: (IDHEAD IDTAIL*); fragment TYPE: ( text | number | bool ); define: define ID as TYPE; The problem ...

热门标签