Esempio n. 1
0
def p_postfix_expression_2(p):
    "postfix_expression : postfix_expression LBRACKET expression RBRACKET"
    p[0] = ast.ArrayRefExp(p[1], p[3])
Esempio n. 2
0
def p_postfix_expression_2(p):
    'postfix_expression : postfix_expression LBRACKET expression RBRACKET'
    p[0] = ast.ArrayRefExp(p[1], p[3], p.lineno(1) + __start_line_no - 1)
Esempio n. 3
0
def p_postfix_expression_2(p):
    "postfix_expression : postfix_expression LBRACKET expression RBRACKET"
    p[0] = ast.ArrayRefExp(p[1], p[3], getLineNumber(p.lineno(1)))