Exemple #1
0
def p_expr_eval(p):
    'expr : EVAL LPAREN expr RPAREN'
    p[0] = ast.Eval(p[3], lineno=p.lineno(1))
Exemple #2
0
def p_expr_backticks(p):
    'expr : BACKTICKS expr BACKTICKS'
    p[0] = ast.Eval(p[2], lineno=p.lineno(1))