hiho week 87 register

Ended

Participants:392

Verdict:Accepted
Score:100 / 100
Submitted:2016-03-01 21:41:05

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class 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 tmp
def Skip():
    symbol = GetHead(content)
    if symbol in '+-*/':
        Skip()
        Skip()
    elif symbol == 'if':
        Skip()
        Skip()
        Skip()
    elif symbol == 'let':
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX