FOR YOU TO DO
Let symbol be the set of symbols.
Specify the set (list-of symbol),
i.e., the set of lists of symbols.
FOR YOU TO DO
Given and ,
write a grammar for
that includes the following examples:
3
x
(5 + 4)
(x + ((7 * 8) / y))
(9 - z)
FOR YOU TO DO
Consider the following grammar:
::= |
| ( lambda ( {}+ )
)
| ( {}+ )
If the following are s,
then give a derivation,
else show why there is no derivation.
a. x
b. ((lambda (x) x) 3)
c. f(3, 4)