Lang:Python2
Edit12345678910111213141516171819202122232425262728293031class DBZ(Exception):def __str__(self):return 'Division By Zero'class TM(Exception):def __str__(self):return 'Type Mismatch'class UI(Exception):def __str__(self):return 'Unbound Identifier'def GetHead(content):tmp = content[0]del content[0]return tmpdef Skip():symbol = GetHead(content)if symbol in '+-*/':Skip()Skip()elif symbol == 'if':Skip()Skip()Skip()elif symbol == 'let':