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