Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content of "Resource" in doGenerate method.(Understaning value of Resource )
icon3.gif  Content of "Resource" in doGenerate method. [message #1721391] Wed, 27 January 2016 02:57 Go to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
This is my grammar.

Model:
greetings=Query;

Query:
(key=QTypekeyWord)? (agg=Aggregation)?


QTypekeyWord:
plot='plot'
;

Aggregation:
agg='average'|'count'|'total'
;


My intention is to use any of the word average/count/total as an aggregate word. However, in the doGenerate method when I debug the value of agg .It only displays when the text is average and null on 'count' and 'total' .The attached image is the one when I use "count" or "total" . When I use "average". agg takes the value as "average"

Please help me understand this. Am I missing something?




  • Attachment: agg.png
    (Size: 110.27KB, Downloaded 92 times)

[Updated on: Wed, 27 January 2016 02:58]

Report message to a moderator

Re: Content of "Resource" in doGenerate method. [message #1721397 is a reply to message #1721391] Wed, 27 January 2016 05:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
it is a precedence thing. you actually mean

Aggregation:
agg=('average'|'count'|'total')
;


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Content of "Resource" in doGenerate method. [message #1721527 is a reply to message #1721397] Thu, 28 January 2016 04:01 Go to previous message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Thank You Smile
Previous Topic:Xtext Web - Code generation
Next Topic:How to incrementally building group of files in the project
Goto Forum:
  


Current Time: Fri Mar 29 11:53:18 GMT 2024

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

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

Back to the top