autocomplete

42 views
Skip to first unread message

Narendra Pathai

unread,
Apr 28, 2014, 9:22:49 AM4/28/14
to concret...@googlegroups.com
Hello,

I am using XText to create a custom DSL which dumps .ecore model too. I have various keywords in my language. Will concrete editor be able to show the keywords in autocomplete suggestions? Will the suggestions be context sensitive and following the grammar?

Meinte Boersma

unread,
Apr 29, 2014, 2:26:01 AM4/29/14
to concret...@googlegroups.com
On Monday, April 28, 2014 3:22:49 PM UTC+2, Narendra Pathai wrote:
I am using XText to create a custom DSL which dumps .ecore model too. I have various keywords in my language. Will concrete editor be able to show the keywords in autocomplete suggestions? Will the suggestions be context sensitive and following the grammar?

Xtext and Concrete are two different beasties: there is no freely-available transformation from (e.g.) an Xtext grammar to Concrete meta model format. But the ideas are largely the same, so if you name your metaclasses with the grammar keywords, then Concrete will do what you expect it to do.

Narendra Pathai

unread,
Apr 29, 2014, 3:30:03 AM4/29/14
to concret...@googlegroups.com
Firstly thanks for your help.

I will be great if you can help me understand how should I proceed using example of SQL, as my language is similar in working with it.

Can SQL type language be used with concrete editor? I just want a context sensitive autocomplete and don't need graphical editor. It will be a great help if you can explain it to me in short for this SQL: SELECT * FROM TAB; 

I tried to understand but couldn't get how concrete will be helpful in this scenario. Pardon me for going a bit overboard on asking this type of question, but I just want a hint.

Meinte Boersma

unread,
Apr 30, 2014, 4:30:49 AM4/30/14
to concret...@googlegroups.com
On Tuesday, April 29, 2014 9:30:03 AM UTC+2, Narendra Pathai wrote:
Firstly thanks for your help.

I will be great if you can help me understand how should I proceed using example of SQL, as my language is similar in working with it.

Can SQL type language be used with concrete editor? I just want a context sensitive autocomplete and don't need graphical editor. It will be a great help if you can explain it to me in short for this SQL: SELECT * FROM TAB; 

I tried to understand but couldn't get how concrete will be helpful in this scenario. Pardon me for going a bit overboard on asking this type of question, but I just want a hint.

Hard to answer this without rehashing the Concrete documentation. Perhaps the easiest first step is to try http://www.mas-wb.com/ (which uses Concrete for model editing): create a new language which has the SQL concepts, and "hack" the iframe for custom concrete syntax which you'd require for "SELECT * FROM TAB" (which decomposes as an instance of a Select-concept with a generic *-concept as column specification and a reference TAB).
Reply all
Reply to author
Forward
0 new messages