AssignmentStatement <- AssignmentBody ';'
AssignmentBody
';'
AssignmentBody <- DirectAssignmentBody / UpdateAssignmentBody / CrementAssignmentBody
DirectAssignmentBody
UpdateAssignmentBody
CrementAssignmentBody
DirectAssignmentBody <- Expression '=' Expression
Expression
'='
Todo
define direct assignment
UpdateAssignmentBody <- Expression ('+=' / '-=' / '*=' / '/=' / '%=' / '&=' / '^=' / '|=') Expression
(
'+='
'-='
'*='
'/='
'%='
'&='
'^='
'|='
)
CrementAssignmentBody <- Expression ('++' / '--')
'++'
'--'
define other assignments relative to direct