[ATL] EBNF Injection problem in standalone Java application [message #15744] |
Thu, 08 February 2007 16:05 |
Eclipse User |
|
|
|
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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.07428 seconds