previous | index

Updating the Pattern/Action Pairs

To recognize the query
     (what movies were made in 1967)
we must add to movie-p/a-list the pair:
    (make-pattern/action
     '(what (movie movies) (was were) made in _)
     (lambda (noun verb year)
       (movies-satisfying
        our-movie-database
        (lambda (movie)
          (= (movie-year-made movie) year))
        movie-title)))
Note that the action procedure does not make use of the arguments noun and verb. However, consider
     (what (movie movies) (was were) made (in before after since) _)
See exercise 7.31.
previous | index