D | expr_parser.py | 1 #!/usr/bin/env python3 188 def ast_sym(ast, env): argument 189 if ast in env: 190 return str(env[ast]) 193 def ast_sym_int(ast, env): argument 194 if ast in env: 195 v = env[ast] 202 def ast_expr(ast, env, edt): argument 204 return not ast_expr(ast[1], env, edt) 206 return ast_expr(ast[1], env, edt) or ast_expr(ast[2], env, edt) [all …]
|