Slide 6.2: An example Slide 6.4: Semantic functions Home |
Number
and Digit
are specified as follows:
D: Digit
N: Number
N ::= N D | D
D ::= '0' | '1' | ... | '9'
v: Integer = { ..., -2, -1, 0, 1, 2, ...}
+: Integer
× Integer
→ Integer
–: Integer
× Integer
→ Integer
*: Integer
× Integer
→ Integer
v
will be used for a general element from the domain, that is, an arbitrary integer.