Example #1
0
def p_trycatch(p):
    'try : TRY statement CATCH LPAREN paramList RPAREN statement'
    p[0] = node.Try(p[2], p[7])
Example #2
0
def p_tryexcept(p):
    'try : TRY statement EXCEPT statement'
    p[0] = node.Try(p[2], p[4])
Example #3
0
def p_tryexcept(p):
    'try : oTRY oATTEMPT statements cATTEMPT oEXCEPT statements cEXCEPT cTRY'
    p[0] = node.Try(p[3], p[6])
Example #4
0
def p_try(p):
    'try : TRY statement'
    p[0] = node.Try(p[2])
Example #5
0
def p_try(p):
    'try : oTRY oATTEMPT statements cATTEMPT cTRY'
    p[0] = node.Try(p[3])