def _error(self): fh.writeXMLFile(self._filePath, self._codeList) sys.exit(self._tk.token() + " " + types[self._tk.type()] + \ " not a valid jack grammar")
def compile(self): # start by compiling class self._handleClass() # write assembled code to xml file fh.writeXMLFile(self._filePath, self._codeList)