blob: 544e207f981ac06c904aad6850858a4c97b45316 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>4.2.1.&nbsp;Simple Rule</title><link href="style.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.72.0" name="generator"><link rel="start" href="index.html" title="The VIATRA2 Model Transformation Framework"><link rel="up" href="sec_ASMSimpleRules.html" title="4.2.&nbsp;Simple ASM Rules"><link rel="prev" href="sec_ASMSimpleRules.html" title="4.2.&nbsp;Simple ASM Rules"><link rel="next" href="def_CallRule.html" title="4.2.2.&nbsp;Call Rule"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">4.2.1.&nbsp;Simple Rule</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="sec_ASMSimpleRules.html">Prev</a>&nbsp;</td><th align="center" width="60%">4.2.&nbsp;Simple ASM Rules</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="def_CallRule.html">Next</a></td></tr></table><hr></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="def_SimpleRule"></a>4.2.1.&nbsp;Simple Rule</h4></div></div></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip: Description"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Tip]" src="images/tip.png"></td><th align="left"><a name="def_SimpleRule_Description"></a>Description</th></tr><tr><td valign="top" align="left"><p>
A <span class="strong"><strong>simple rule</strong></span><a name="N11201" class="indexterm"></a> is such an ASM rule that does not contain nested
ASM rules.
</p><p>
A simple rule can change <span class="emphasis"><em>control flow</em></span> (like <a href="def_SkipRule.html" title="4.2.3.&nbsp;Skip Rule">skip rule</a>,
<a href="def_FailRule.html" title="4.2.4.&nbsp;Fail Rule">fail rule</a>, or <a href="def_CallRule.html" title="4.2.2.&nbsp;Call Rule">call rule</a>),
<span class="emphasis"><em>variables</em></span> (like <a href="def_UpdateRule.html" title="4.2.5.&nbsp;Update Rule">update rule</a>), and it may print or log
during execution (like <a href="def_PrintRule.html" title="4.2.6.&nbsp;Print Rule">print rule</a> or <a href="def_LogRule.html" title="4.2.7.&nbsp;Log Rule">log rule</a>.
</p></td></tr></table></div><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Important: Syntax"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Important]" src="images/important.png"></td><th align="left"><a name="def_SimpleRule_Syntax"></a>Syntax</th></tr><tr><td valign="top" align="left"><pre class="programlisting">
SimpleRuleAST ::= <a href="def_SkipRule.html" title="4.2.3.&nbsp;Skip Rule">SkipRuleAST</a> | <a href="def_FailRule.html" title="4.2.4.&nbsp;Fail Rule">FailRuleAST</a>
| <a href="def_CallRule.html" title="4.2.2.&nbsp;Call Rule">CallRuleAST</a> | <a href="def_UpdateRule.html" title="4.2.5.&nbsp;Update Rule">UpdateRuleAST</a>
| <a href="def_PrintRule.html" title="4.2.6.&nbsp;Print Rule">PrintRuleAST</a> | <a href="def_LogRule.html" title="4.2.7.&nbsp;Log Rule">LogRuleAST</a>
</pre></td></tr></table></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="sec_ASMSimpleRules.html">Prev</a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="sec_ASMSimpleRules.html">Up</a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="def_CallRule.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">4.2.&nbsp;Simple ASM Rules&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;4.2.2.&nbsp;Call Rule</td></tr></table></div></body></html>