Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript] Java Integration - Parse Error
[MOFScript] Java Integration - Parse Error [message #602104] Tue, 26 June 2007 19:26
Eclipse UserFriend
Originally posted by: chhirsch.rumms.uni-mannheim.de

Hi everybody,

i'm getting a Parse Error, when trying to parse a MOFScript Transformation
using the MOFScript Java API.
Somehow the imports declared in the transformation can not be found.
When executing the transformation within Eclipse, everything is fine.
I also tried to convert the imported transformations into model-format
before executing the program.

I have the three following m2t-files in the same folder:

OMEGA.m2t
Web.m2t
CMS.m2t


OMEGA.m2t contains the following code:

texttransformation OMEGA (in uml:"http://www.eclipse.org/uml2/2.0.0/UML") {
access library aName "Web.m2t"
access library aName "CMS.m2t"
uml.Class::main () {
self.mapWebClasses()
self.mapCMSClasses()
}
}

The transformation rules mapWebClasses() and mapCMSClasses()
are declared in the imported transformations.

By using the following java code, i'm trying to parse this file:

MOFScriptSpecification spec = parserUtil.parse(new File(
" C:\\eclipse\\workspace\\omega.test.plugin.codegeneratorMOFSc ript\\src\\temp
lates\\OMEGA.m2t"), true);

I'm getting the following errors:

Parsing result: 4 errors
2007-06-26 20:49:57,202 [Worker-2] ERROR
(omega.test.plugin.codegeneratorMOFScript.base.MOFScriptCode Generator:76)
: Error: MTTParseError: Cannot find import: Web.m2t, line: 10, column: 9
2007-06-26 20:49:57,202 [Worker-2] ERROR
(omega.test.plugin.codegeneratorMOFScript.base.MOFScriptCode Generator:76)
: Error: MTTParseError: Cannot find import: CMS.m2t, line: 16, column: 6
2007-06-26 20:49:57,202 [Worker-2] ERROR
(omega.test.plugin.codegeneratorMOFScript.base.MOFScriptCode Generator:76)
: Error: MTTParseError: Undefined function call: mapWebClasses, line: 20,
column: 7
2007-06-26 20:49:57,202 [Worker-2] ERROR
(omega.test.plugin.codegeneratorMOFScript.base.MOFScriptCode Generator:76)
: Error: MTTParseError: Undefined function call: mapCMSClasses, line: 22,
column: 4

Does anybody have any ideas, what could be wrong here?

Thanks,
Christian
Previous Topic:[TCS]TCS-Importer.jar that works with ATL CVSHEAD?
Next Topic:How to invoke MOFSCRIPT from java code..
Goto Forum:
  


Current Time: Thu Apr 25 09:26:06 GMT 2024

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

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

Back to the top