“Semantic Interpretation” (interpret.lsp)
The basic idea: extract the command name and object attributes from the parse tree to facilitate precondition verification and action execution
(defstruct command
action
object
destination)
(defstruct location
(abs-position NIL)
(rel-direction NIL)
(rel-object NIL))
(defstruct object
ref
color
shape
place)
Parse the SENTENCE subtree
Parse the LOCATION subtree
Parse the OBJECT subtree
Previous slide
Next slide
Back to first slide
View graphic version