11 Feb 2004*
CS 3243 - Optional Lecture - NLP
26
Semantic Interpretation
lExp(x) ® Exp(x1) Operator(op) Exp(x2)
l       { x = Apply(op, x1, x2) }
lExp(x) ® ( Exp(x) )
lExp(x) ® Number(x)
lNumber(x) ® Digit(x)
lNumber(x) ® Number(x1) Digit(x2) { x = 10 ´ x1 + x2 }
lDigit(x) ® x { 0 ≤ x ≤ 9 }
lOperator(x) ® x { x Î { +, -, ´, ¸ }}
l