begin parser construction, clean up a few things in scanner_spec