tag:blogger.com,1999:blog-6255758224607466565.post209172918630140671..comments2024-02-11T10:25:39.241+01:00Comments on Sebastian Zarnekow's Blog: Xtext Corner #6 - Data Types, Terminals, Why Should I Care?Anonymoushttp://www.blogger.com/profile/05886096380926364322noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6255758224607466565.post-83762305491306124652016-10-25T23:44:53.674+02:002016-10-25T23:44:53.674+02:00Hi, so if there are no syntax differences in the g...Hi, so if there are no syntax differences in the grammar between a production rule and a datatype rule, how can I tell them apart in the grammar? It seems the difference is without a syntactic distinction. Unknownhttps://www.blogger.com/profile/00794966928932155834noreply@blogger.comtag:blogger.com,1999:blog-6255758224607466565.post-1394947761653010892016-04-13T12:28:31.248+02:002016-04-13T12:28:31.248+02:00Hi Sebastian,
I can have variable declaration lik...Hi Sebastian,<br /><br />I can have variable declaration like this:<br /><br />1. vars a[10] ----> it is valid<br />2. vars a[10<br /> ] ----> it is invalid for my editor but eclipse not showing any error<br /><br />In my case the valid thing for above is:<br /><br />3. vars a[10\ <br /> ] -----> It is valid for my editor. Could you please tell me how to write a rule when any newline comes in middle of a statement it should an error. If I place '\' it should not show error.<br /><br />TechnoGuruhttps://www.blogger.com/profile/07699922841395274457noreply@blogger.comtag:blogger.com,1999:blog-6255758224607466565.post-73650149406804415592016-04-13T12:28:30.592+02:002016-04-13T12:28:30.592+02:00Hi Sebastian,
I can have variable declaration lik...Hi Sebastian,<br /><br />I can have variable declaration like this:<br /><br />1. vars a[10] ----> it is valid<br />2. vars a[10<br /> ] ----> it is invalid for my editor but eclipse not showing any error<br /><br />In my case the valid thing for above is:<br /><br />3. vars a[10\ <br /> ] -----> It is valid for my editor. Could you please tell me how to write a rule when any newline comes in middle of a statement it should an error. If I place '\' it should not show error.<br /><br />TechnoGuruhttps://www.blogger.com/profile/07699922841395274457noreply@blogger.comtag:blogger.com,1999:blog-6255758224607466565.post-16609923954908509292015-02-02T16:08:46.024+01:002015-02-02T16:08:46.024+01:00Thank you for a great article on terminal vs. data...Thank you for a great article on terminal vs. data rules in Xtext - it helped me a lot!mindforgerhttps://www.blogger.com/profile/05418184891902150192noreply@blogger.comtag:blogger.com,1999:blog-6255758224607466565.post-86491400408728546852014-02-28T09:24:12.823+01:002014-02-28T09:24:12.823+01:00hi.
I have specified terminal rules in my xtext fi...hi.<br />I have specified terminal rules in my xtext file.<br />now when i am writing the code for testing the grammar, Ctrl+Space gives me suggestions for all the keywords and all except for the data mentioned in terminals.<br />i want the data mentioned in terminals to show up in suggestions list in eclipse.<br />please help me.<br /><br />GaurangAnonymoushttps://www.blogger.com/profile/13959950506315526105noreply@blogger.com