From cc2408e68a23414cf1af351aa43e7c1d50980445 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 3 Nov 2020 19:22:27 -0700 Subject: don't need a separate thing for assignment target --- language/statements/assignment.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'language/statements') diff --git a/language/statements/assignment.rst b/language/statements/assignment.rst index f8c1600..a87752e 100644 --- a/language/statements/assignment.rst +++ b/language/statements/assignment.rst @@ -4,12 +4,12 @@ Assignments .. crowbar:element:: AssignmentStatement <- AssignmentBody ';' AssignmentBody <- DirectAssignmentBody / UpdateAssignmentBody / CrementAssignmentBody -.. crowbar:element:: DirectAssignmentBody <- AssignmentTarget '=' Expression +.. crowbar:element:: DirectAssignmentBody <- Expression '=' Expression .. todo:: define direct assignment -.. crowbar:element:: UpdateAssignmentBody <- AssignmentTarget ('+=' / '-=' / '*=' / '/=' / '%=' / '&=' / '^=' / '|=') Expression +.. crowbar:element:: UpdateAssignmentBody <- Expression ('+=' / '-=' / '*=' / '/=' / '%=' / '&=' / '^=' / '|=') Expression -.. crowbar:element:: CrementAssignmentBody <- AssignmentTarget ('++' / '--') +.. crowbar:element:: CrementAssignmentBody <- Expression ('++' / '--') .. todo:: define other assignments relative to direct -- cgit v1.2.3