Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] EBNF Injection problem in standalone Java application
[ATL] EBNF Injection problem in standalone Java application [message #15744] Thu, 08 February 2007 21:05
Eclipse UserFriend
Originally posted by: milanmilanovich.yahooo.com

Hi all,

I'm trying to integrate EBNF injection/extraction in my application. In
Eclipse with TCS by EBNF Injector works perfectly (with AM3 Ant Tasks).

But, when I run from my application, it generates an error: "Error: 1:1:
unexpected token: here writes first word that read.",

I integrate this method into my ATLTransformations class which works good
for
ATL transformations and XML Injection/Extraction.

BTW - EBNF extraction works good, also.
Code for this method is almost the same as in KM3Projector class:

...
ASMModel ret = mdramh.newModel("IN", myMDRmm);
EBNFInjector2 ebnfi = new EBNFInjector2();
InputStream in = null;
in = new FileInputStream(file);
Class lexer = OCLLexer.class;
Class parser = OCLParser.class;
ebnfi.performImportation(myMDRmm, ret, in, "MM", lexer, parser);
...

What is the problem ?
Previous Topic:inject/extract ATL-0.2 file/ATL-0.2 model
Next Topic:how to model association
Goto Forum:
  


Current Time: Thu Sep 19 05:15:56 GMT 2024

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

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

Back to the top