Skip to content

ls-it-solutions/ScopeProviderSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScopeProvider Sample

This sample contains an implementation for referencing concept implementing a certain interface concept. See MPS Scopes documentation for further investigation. If you clone the project and open in MPS 2019.3.3 you can use the the links to navigate to the nodes. The editor of the node related by the link will be opened.

Language A

Language A provides

  • the interface concept ISpecificConcept
  • a container for references to concepts implementing ISpecificConcept

ISpecificConcept

ISpecificConcept is just a marker interface. It helps identifying concepts of interest.

ISpecificConceptReference implements Scoping

All used languages in the current models module (TODO: we should only scan the ones for the model) are scanned for concepts implementing the ISpecificConcept and the result is returned as Scope in the ConstraintDeclaration

Container

The Container is a usage example for the specific concepts. It just contains the references to the specific concepts.

Language B

Language B is a sample for any language contributing to the specific concepts. It implements SpecificConcept1 SpecificConcept2 SpecificConcept3 and a Container specialization BContainer for convenience.

Sandbox B

The model B in the sandbox solution contains the test container.

About

first sample of ScopeProviders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published