interpreter package

Subpackages

Module contents

class interpreter.Interpreter(program, switch=None)

Bases: object

Represents the Interpreter.

Attributes:

__program: The source code. __switch: Switch specifying to print the ast or st. __ast: The abstract syntax tree. __st: The standardized tree.

interpret()

Interprets the given program.