-
Notifications
You must be signed in to change notification settings - Fork 0
First Steps with Pedantic
Tony Anjorin edited this page Apr 29, 2024
·
7 revisions
- Start MPS and create a new model:
- In the ensuing dialogue choose a model name of your choice (for this guide we'll take
MyDomain.BasicTerms
) - In the ensuing dialogue click on the tab
Used Languages
, on+
and enter and choosepedantic
. Confirm withOK
:
- You can now right click the your model and create a pedantic
domain
:
- You can now define a collections of terms:
- Some tips for working with the editor:
- If in doubt, use
Ctrl+Space
,Enter
,Space
, orTab
to ask the editor what to do next. - If the text you have written is red, don't continue typing - this means that the editor does not know what to do and you have to take a step back and retry (most often with
Ctrl+Space
to choose what type of element you want to create next).
- Try the visualisation by selecting a term (i.e., click on a purple word) and pressing
Ctrl+Alt+V
. This should open a window to the right of the editor, visualising the term with its immediate context. Note that you can navigate to all terms in the visualisation by clicking on them. If the visualisation does not work, you probably have to install GraphViz (google for GraphViz and install it for your OS). Close and restart MPS and retry the visualisation.
Good, better, pedantic!