Skip to content

First Steps with Pedantic

Tony Anjorin edited this page Apr 29, 2024 · 7 revisions
  1. Start MPS and create a new model:
image
  1. In the ensuing dialogue choose a model name of your choice (for this guide we'll take MyDomain.BasicTerms)
  2. In the ensuing dialogue click on the tab Used Languages, on + and enter and choose pedantic. Confirm with OK:
image
  1. You can now right click the your model and create a pedantic domain:
image
  1. You can now define a collections of terms:
image
  1. Some tips for working with the editor:
  • If in doubt, use Ctrl+Space, Enter, Space, or Tab 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).
  1. 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.
Clone this wiki locally