blob: 43b4fdacae291fe9da6ebb9270d3065cde736e6a [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>6.1.2.&nbsp;Keywords</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_TokensOverview.html" title="6.1.&nbsp;VTCL tokens: An Overview"><link rel="prev" href="def_Token.html" title="6.1.1.&nbsp;Tokens"><link rel="next" href="sec_NameTokens.html" title="6.2.&nbsp;Tokens for names and strings"></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">6.1.2.&nbsp;Keywords</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="def_Token.html">Prev</a>&nbsp;</td><th align="center" width="60%">6.1.&nbsp;VTCL tokens: An Overview</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="sec_NameTokens.html">Next</a></td></tr></table><hr></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="def_VTCLKeywords"></a>6.1.2.&nbsp;Keywords</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_VTCLKeywords_Description"></a>Description</th></tr><tr><td valign="top" align="left"><p>
The A <span class="strong"><strong>keywords</strong></span> of the VTCL language are listed below.
</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_VTCLKeywords_Syntax"></a>Syntax</th></tr><tr><td valign="top" align="left"><pre class="programlisting">
namespace import machine pattern or neg find check supertypeOf subtypeOf
typeOf instanceOf gtrule precondition postcondition action apply xor
asmfunction rule skip fail call update print println log debug info warning
error fatal seq random let in below choose forall with do iterate if try else
new delete delete_content move_content copy copy_boundary_edges
skip_boundary_edges move rename setValue setFrom setTo setMultiplicity
setAggregation setInverse undef true false one_to_one one_to_many
many_to_one many_to_many ref fqn name value source target multiplicity
aggregation inverse toBoolean toString toInteger toDouble toMultiplicity out inout
parallel
</pre></td></tr></table></div><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Caution: Constraints"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Caution]" src="images/caution.png"></td><th align="left"><a name="def_VTCLKeywords_Constraints"></a>Constraints</th></tr><tr><td valign="top" align="left"><p>
Most of these keywords can be used as <a href="def_Identifier.html" title="6.2.1.&nbsp;Identifier">identifiers</a> in <a href="def_ModelElementName.html" title="5.7.1.&nbsp;Model Element Name">model element names</a>.
Keywords disallowed as identifiers are the following:
<code class="computeroutput">check</code>, <code class="computeroutput">supertypeOf</code>, <code class="computeroutput">subtypeOf</code>,
<code class="computeroutput">typeOf</code>, <code class="computeroutput">instanceOf</code>,
</p><pre class="programlisting">
KeywordAsIdentifier ::=
namespace | import | machine | pattern | neg | find |
gtrule | precondition | postcondition | action | apply | xor |
asmfunction | rule | skip | fail | call | update | print | println | log | debug | info | warning |
error | fatal | seq | random | let | in | below | choose | forall | with | do | iterate | if | try | else |
new | delete | delete_content | move_content | copy | copy_boundary_edges |
skip_boundary_edges | move | rename | setValue | setFrom | setTo | setMultiplicity |
setAggregation | setInverse | undef | true | false | one_to_one | one_to_many |
many_to_one | many_to_many | ref | fqn | name | value | source | target | multiplicity |
aggregation | inverse | toBoolean | toString | toInteger | toDouble | toMultiplicity | out | inout
-- The following keywords conflict with entity definition, so they are disallowed without ''s
-- check | supertypeOf | subtypeOf | typeOf | instanceOf |
</pre></td></tr></table></div><div class="highlights"><a name="def_Keywords_DefinedIn"></a><p><b>Defined In:&nbsp;</b>
<a href="def_Token.html" title="6.1.1.&nbsp;Tokens">Token</a>
</p></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="def_Token.html">Prev</a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="sec_TokensOverview.html">Up</a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="sec_NameTokens.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">6.1.1.&nbsp;Tokens&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;6.2.&nbsp;Tokens for names and strings</td></tr></table></div></body></html>