|
|
|
|
Re: Decision tables in Xtext [message #1743291 is a reply to message #1743280] |
Wed, 14 September 2016 06:38 |
|
Why would you build that in Xtext? I assume it is because you would like to embed decision tables in a DSL. Otherwise real tabular editors could be better.
I think Dominik's blog post that Christian linked is a good start to define tables in an Xtext grammar. This could be extended to your use case. You may want to name the rules not so generic as in the example, but more suited to your case. Also the structure is more fixed.
Please let us know if the example does not help you.
|
|
|
|
|
|
|
|
|
Re: Decision tables in Xtext [message #1743719 is a reply to message #1743594] |
Mon, 19 September 2016 08:26 |
|
Quote:If you declare the number of conditions that are used in the table and do the checks this would work, right?
Yes, that is basically it. You would have to identify what columns are conditions and which are consequences. Maybe by adding a special header row. And which valid consequences you have.
For the formatting take Dominik's blog post.
|
|
|
Powered by
FUDForum. Page generated in 0.05298 seconds