| xtext injected parser [message #989207] |
Wed, 05 December 2012 03:52  |
Dana Klein Messages: 55 Registered: October 2012 |
Member |
|
|
@Inject
protected void setInjectedParser(IParser parser) {
this.parser = parser;
}
I want to manually run the xtext engine and i'm not sure when and where the setInjectedParser is being called.
thanks,
|
|
|
|
|
| Re: xtext injected parser [message #989230 is a reply to message #989212] |
Wed, 05 December 2012 05:03   |
Dana Klein Messages: 55 Registered: October 2012 |
Member |
|
|
Ok thanks!
I will try to explain
I have my dsl as plugin.
i want to create a new app that use my dsl
so i tried to write this code:
JsonParser p = new JsonParser();
IParseResult r = p.parse(new StringReader("{}"));
//once that work it will be the file data instead of {}
but when i do the parse the node model builder is null and the following line has exception:
return doParse(ruleName, in, nodeModelBuilder.get(), 0);
and i'm not sure how to init nodeModelBuilder
i'm sure i missing some steps but i'm not quite familiar with the xtext process.
[Updated on: Wed, 05 December 2012 05:13] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02025 seconds