English 中文(简体)
采用外部EMF模式的类型信息
原标题:XText using type information from an external EMF Model

I m looking into using XText to make an extenstion DSL to a language that I use daily and has some obvious shortcomings (AS3, through FlashBuilder).

我有一个图表和代码生成系统,在该系统中,以下声明产生价值等级,包括建筑商、班级和搬运工等。

class Person (name: String, age: int)

这是罚款,但我希望闪电机图书馆界定的类型,以及我在扩展后版本的用户项目中界定的类型。 在以上编码中,有<代码>String和int均来自本土闪电室。

我认为,闪电器在内部使用EMF核心,代表任何包括校准和我在项目中界定的任何类型。 如果是这样,我的问题是:

How can I access the EMF model of FLash Builder?

如果没有EMF模式,我就认为我必须把图书馆捆绑起来。 我本人和我的项目源代码。

Is the Xtend language intended to preform these sort of native filesystem tasks?

增 编

最佳回答

让我们把闪电器放在一个以EMF为基础的代谢物上。 那么,你必须做的是执行IResourceServiceProvider。 我的 b脚跟不上对高射模型的 very子:。 http://christiandietrich.wordpress.com/07/17/xtext-2-0-and-uml/

无:天线是现代风格的方案拟订语言,它汇集到 Java,并且有冰箱支持。

问题回答

暂无回答




相关问题
PHP Grammar in Xtext

I am researching processes of modernization and Web Reigieneria and I need to define grammars for PHP and XHTML to generate code XText after defining metamodels. Has someone made some progress which ...

Problem integrating OCL types in Xtext grammar

I m working on a grammar (Xtext project) where I want to reuse OCL types. Usually you refer in Xtext to existing types with an import statement, e.g. import "http://www.eclipse.org/emf/2002/Ecore" as ...

Getting XText to work

I know you don t like helping others in their homework but I have to make an XText grammar, write a sample code that matches this grammar and compile it to a html file. The lecturer showed us the ...

Why doesn t linking work in my Xtext-based DSL?

The following is the Xtext grammar for my DSL. Model: variableTypes=VariableTypes predicateTypes=PredicateTypes variableDeclarations= VariableDeclarations rules=Rules; VariableType: name=ID; ...

How can I traverse the EMF object tree generated by Xtext?

I m using Xtext to define my DSL. Xtext generates a parser that lets me traverse the EMF model of my input DSL. I d like to translate this EMF model into some other tree. To do this translation, I ...

Can I use XText for a DSL involving an XML file type?

I have defined a small DSL that is mostly written in the form of different types of XML files in conjuction with some property files. This works very well but I wish to create an Eclipse Editor to ...

热门标签