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