Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to add checks to a grammar?
How to add checks to a grammar? [message #46116] Fri, 29 May 2009 04:37 Go to next message
Eclipse UserFriend
Hi,

where do I have to place .chk files for grammars with TMF Xtext? Are there
any naming convetions for the files?

I placed them in the same folder as xtext grammar file. But the editor
seems not to recognize the checks.

Regards

Christoph
Re: How to add checks to a grammar? [message #46146 is a reply to message #46116] Fri, 29 May 2009 04:47 Go to previous message
Eclipse UserFriend
Hi,

if you want to use check for validation you should add the CheckFragment
to your *.mwe configuration like so:

<fragment class="org.eclipse.xtext.generator.validation.CheckFragment "/>

This will generate three *.chkl files :
- fast checks (evaluated live in the editor)
- normal checks (evaluated on save)
- expensive checks (evaluated through an explicit action)

The guice configuration is as well generated.

Regards,
Sven

Christoph Kulla schrieb:
> Hi,
>
> where do I have to place .chk files for grammars with TMF Xtext? Are
> there any naming convetions for the files?
> I placed them in the same folder as xtext grammar file. But the editor
> seems not to recognize the checks.
>
> Regards
>
> Christoph
>
Previous Topic:from BNF to metamodel
Next Topic:[XText] problem in importing a metamodel.
Goto Forum:
  


Current Time: Thu May 08 13:17:45 EDT 2025

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

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

Back to the top