Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript] loading Metamodel
[MOFScript] loading Metamodel [message #617741] Wed, 18 June 2008 02:23
neto Mising name is currently offline neto Mising nameFriend
Messages: 33
Registered: July 2009
Member
Hi,

I'm defining some textual tranformations for models based on the
JavaAbstractSyntax metamodel. It works fine! However, when I try to
integrate my MOFScript transformation in a Java environment, using the
example given in the MOFScript User Guide v0.6, it doesn't work.

The following line
**int errorCount = ParserUtil.getModelChecker().getErrorCount();**
returns 85 erros. They are all concerning the lack of a metamodel
definition.

I see that the exemple in the User Guide doesn't present a means of
setting the metamodel before calling
**execMgr.executeTransformation();**
So, the errors are expected.

Although I've searched a lot, I have not found any way of setting the
metamodel, any kind of MOFScript API and any other kind of ducumentation.

Has anyone had the same problem? May someone help me?

Best regards!

---
The output I get from my Java program is this:
Parsing result: 85 errors
: Error: MTTParseError: Illegal/unknown context: jast, line: 484, column: 0
: Error: MTTParseError: Can't find feature 'interface' for type
'TypeDeclaration'., line: 28, column: 5
: Error: MTTParseError: Type not found: 'FieldDeclaration' in metamodel
'null', line: 0, column: 0
: Error: MTTParseError: Can't find feature 'bodyDeclarations' for type
'TypeDeclaration'., line: 31, column: 2
: Error: MTTParseError: Type not found: 'MethodDeclaration' in metamodel
'null', line: 0, column: 0
..
.
.
.
---
jast is a reference to the metamodel.
Previous Topic:OAW - Type Casting with XTend
Next Topic:[Epsilon] Problems with HUTN
Goto Forum:
  


Current Time: Sat Apr 20 07:58:47 GMT 2024

Powered by FUDForum. Page generated in 0.03031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top