M2L Text Editor

Home > Textual Syntax Specification > M2L Text Editor

In general, OOMEGA is a self-describing system, e.g. the meta-metamodel is specified with the concepts of the meta-metamodel. The same applies to textual syntax specifications. There's a well-designed metamodel for textual syntax specifications. Moreover there's a textual syntax specification for that metamodel defined, namely "M2L". Hence you can use OOMEGA’s text editor – more specifically the "M2L" editor tab - to specify concrete textual syntaxes for your metamodels.

This is done as follows:

  • Right-click on one of your metapackages, e.g. "org.oomega.architecture" and select the menu item "Create ConcreteSyntax as concreteSyntax".
  • Double-click on the newly created concrete syntax and open the "M2L" editor tab.
  • Type in the name of the concrete syntax, e.g. "Architecture"; you can do this in the "M2L" text editor right after the keywords "concrete syntax".
  • Create a new line and enter the textual syntax definition for a class of your metamodel, e.g. "Component".
  • Create new lines and textual syntax definitions for all other classes of your metamodel.

Next chapter: Specification Language

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.