Xtext example of a scoped object

前端 未结 2 1364
-上瘾入骨i
-上瘾入骨i 2021-02-06 05:04

I\'m looking for an example (in XText) of how to implement code completion on an user defined objects members. As far as I can see I need to use IScope, but how all this wires t

2条回答
  •  广开言路
    2021-02-06 05:58

    In my book on Xtext, "Implementing Domain-Specific Languages with Xtext and Xtend", https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend , there is a chapter about scoping for a "smaller" Java language (dealing also with inheritance). You can find the sources of examples here: https://github.com/LorenzoBettini/packtpub-xtext-book-examples

提交回复
热议问题