Slide 7.1: A calculator language Slide 7.3: The semantic domains of the calculator langauge Home |
+/-
acts in much the same way as the answer keys, it has been included with them in the syntactic domains.
P: Program O: Operator N: Numeral S: ExprSequence A: Answer D: Digit E: Expression |
10 M+ + 6 +/- = × MR = = 10 + –6 = × MR = = 4 × MR = = 4 × 10 = = 40 |
a parser will construct the syntax tree. Notice that most operations associate to the left because of the way keystrokes are processed from left to right. |