S), FIRST(VP), FOLLOW(VT), and FOLLOW(Det). In this grammar, nonterminals are represented by capitalized symbols, and the start symbol is S.
S → NP VP
NP → Det Adjs N
Adjs → ε | Adj Adjs
VP → VI | VT NP
Det → a | the
Adj → big
N → dog | cat
VI → arrived
VT → saw | chased
(fold + '(2 3 4) 0) in Scheme, if fold is defined by
(define fold (lambda (f l i)
(if (null? l) i
(f (car l) (fold f (cdr l) i)))))
sort method in the Collections library class that takes a List argument and a Comparator argument. Here, Comparator is an interface (that is, a class with no members other than abstract methods). Describe how Java can use this mechanism to sort lists.
Describe how this environment component is initialized. Assume that the language is being interpreted rather than being compiled, so that the initialization necessarily takes place at run time.