aboutsummaryrefslogtreecommitdiff
path: root/language/statements/assignment.rst
blob: a87752e9a44e954b02f49735442375fef2e13f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Assignments
^^^^^^^^^^^

.. crowbar:element:: AssignmentStatement <- AssignmentBody ';'
                     AssignmentBody <- DirectAssignmentBody / UpdateAssignmentBody / CrementAssignmentBody

.. crowbar:element:: DirectAssignmentBody <- Expression '=' Expression

    .. todo:: define direct assignment

.. crowbar:element:: UpdateAssignmentBody <- Expression ('+=' / '-=' / '*=' / '/=' / '%=' / '&=' / '^=' / '|=') Expression

.. crowbar:element:: CrementAssignmentBody <- Expression ('++' / '--')

.. todo:: define other assignments relative to direct