public function __construct($scanner) { $scanner->next(); $this->symTable = new SymTable(null); Globals::init($this->symTable); $this->heading = new ProgramHeading($scanner); parent::semicolonPass($scanner); $this->block = new Block($scanner, $this->symTable); parent::requireOperator($scanner, '.'); $scanner->next(); if (!$scanner->get()->isEOF()) { parent::simpleException($scanner, ['<EOF>']); } }