|
|
|
|
Re: Where do I define new grammar? [message #639363 is a reply to message #638566] |
Tue, 16 November 2010 09:14 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Am 11.11.10 17:10, schrieb Chris Ainsley:
> Hi,
>
> Assuming I have just a single .xtext file (derived from one of the
> tutorial DSLs), how and where do I declare new terminators for my language.
>
> If I declare terminators in another xtext file (adapted from the
> standard terminators), it is not reachable from my original xtext file.
> How does xtext resolve grammars.
Xtext searches grammars along the classpath. Make sure your grammars
reside in source folders and the Java dependencies are set up correctly.
>
> I read in the user guide that I can declare other grammars but can
> someone give me a quick guide if I should declare the grammar in the
> same xtext file, in a separate xtext file, and if in a separate file -
> how do I make this grammar 'visible'?
>
> Thanks,
>
> Chris
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.03530 seconds