11/15/2009 Lecture 10 Let Implementation T. METIN SEZGIN NOV 9 2009 LET: our pet language 1 11/15/2009 An example program Input Scanning & parsing The AST Components of the language Syntax Values Environment Behavior specification Behavior implementation Scanning Parsing Evaluation 2 11/15/2009 Syntax data types Values Set of values manipulated by the program Expressed values Possible values of expressions Denoted values Possible values of variables Interface for values Constructors Observers 3 11/15/2009 Environments Same model of environment from before Use to abbreviate Specifying the behavior Programs Expressions Constructors Observer 4 11/15/2009 Specifying the behavior Programs Expressions Constructors Observer Specifying the behavior Programs Expressions Constructors Observer 5 11/15/2009 Behavior implementation what we envision Behavior implementation what we envision 6 11/15/2009 The Interpreter The Interpreter 7
© Copyright 2026 Paperzz