English 中文(简体)
ANTLR and content assist in Eclipse
原标题:ANTLR and content assist in Eclipse

我在Eclipse有一个项目,我在那里拥有一个习惯语言的编辑。 我正在利用荷兰航天中心为它制作汇编者。 我需要的是向编辑增加内容。

投入是习惯语言的源代码,用户要求内容协助的特性。 源代码大多不完整,因为用户可以要求内容随时提供协助。 我需要的是计算对特定职位有效的可能象征性物品清单。

可能要起草一部习惯法典,以进行计算,但该守则必须手工保存在图表中。 我看到,教区正在做类似的事情。 它必须能够在特定情况下确定哪些是可接受的症状。 是否可能“重新使用”? 创造内容方面的最佳做法如何有助于任何方面?

Thanks, Balint

问题回答

查阅Xtext。 Xtext使用Antlr3在顶端,为Antlr语提供内容协助。 尤其关注一揽子计划:org.eclipse.xtext.ui.editor.contentassist。

You may consider to redefine your grammar with Xtext, which would provide the content assist out-of-the-box. It is not possible to reuse the Antlr grammar of a custom language.





相关问题
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 ...

热门标签