![]() | Syntax |
---|---|
GTRuleDefAST ::= OptAnnotationsAST gtrule TypeNameAST DirectedFormalParameterDefAST = GTRuleBodyAST DirectedFormalParameterDefAST ::= ( FormalParamsAST ) | ( ) GTRuleBodyAST ::= { PreconditionDefAST PostconditionOptAST ActionOptAST } PreconditionDefAST ::= precondition GraphPatternDefAST | precondition PatternCompositionAST PostconditionOptAST ::= $empty | postcondition GraphPatternDefAST | postcondition PatternCompositionAST ActionOptAST ::= $empty | action { AsmRulesAST } TypeNameAST is the identifier of the graph transformation rule.
Variables defined as part of the
directed formal params
are the input or output parameters of the rule depending on its direction (
provides different ways for defining graph transformation rules in order to adapt to the different programming style of transformation developers:
Thus, a GT rule can be composed of Each of the precondition and postcondition parts of a GT rule can be defined either locally or somewhere else, i.e. the appropriate keyword is followed by either a pattern definition or a pattern call. |
Defined In: GTASM machine
See Also: choose rule, forall rule, GT rule call.