/third_party/python/Parser/ |
D | peg_api.c | 6 mod_ty 14 mod_ty result = _PyPegen_run_parser_from_string(str, mode, filename, flags, arena); in _PyParser_ASTFromString() 18 mod_ty
|
D | pegen.h | 252 mod_ty _PyPegen_run_parser_from_file_pointer(FILE *, int, PyObject *, const char *, 255 mod_ty _PyPegen_run_parser_from_string(const char *, int, PyObject *, PyCompilerFlags *, PyArena *); 296 mod_ty _PyPegen_make_module(Parser *, asdl_stmt_seq *);
|
D | pegen.c | 1415 mod_ty 1437 mod_ty result = NULL; in _PyPegen_run_parser_from_file_pointer() 1454 mod_ty 1477 mod_ty result = NULL; in _PyPegen_run_parser_from_string() 2459 mod_ty
|
D | parser.c | 504 static mod_ty file_rule(Parser *p); 505 static mod_ty interactive_rule(Parser *p); 506 static mod_ty eval_rule(Parser *p); 507 static mod_ty func_type_rule(Parser *p); 934 static mod_ty 945 mod_ty _res = NULL; in file_rule() 981 static mod_ty 992 mod_ty _res = NULL; in interactive_rule() 1025 static mod_ty 1036 mod_ty _res = NULL; in eval_rule() [all …]
|
/third_party/python/Tools/peg_generator/peg_extension/ |
D | peg_extension.c | 6 _build_return_object(mod_ty module, int mode, PyObject *filename_ob, PyArena *arena) in _build_return_object() 54 mod_ty res = _PyPegen_run_parser_from_file_pointer( in parse_file() 96 mod_ty res = _PyPegen_run_parser_from_string(the_string, Py_file_input, filename_ob, in parse_string()
|
/third_party/python/Include/internal/ |
D | pycore_ast.h | 15 typedef struct _mod *mod_ty; typedef 57 mod_ty typed_elements[1]; 628 mod_ty _PyAST_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores, 630 mod_ty _PyAST_Interactive(asdl_stmt_seq * body, PyArena *arena); 631 mod_ty _PyAST_Expression(expr_ty body, PyArena *arena); 632 mod_ty _PyAST_FunctionType(asdl_expr_seq * argtypes, expr_ty returns, PyArena 838 PyObject* PyAST_mod2obj(mod_ty t); 839 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode); 842 extern int _PyAST_Validate(mod_ty);
|
/third_party/python/Python/ |
D | future.c | 57 future_parse(PyFutureFeatures *ff, mod_ty mod, PyObject *filename) in future_parse() 119 _PyFuture_FromAST(mod_ty mod, PyObject *filename) in _PyFuture_FromAST()
|
D | pythonrun.c | 58 static PyObject *run_mod(mod_ty, PyObject *, PyObject *, PyObject *, 200 mod_ty mod; in PyRun_InteractiveOneObjectEx() 1168 mod_ty mod; in PyRun_StringFlags() 1198 mod_ty mod; in pyrun_file() 1299 run_mod(mod_ty mod, PyObject *filename, PyObject *globals, PyObject *locals, in run_mod() 1365 mod_ty mod; in Py_CompileStringObject()
|
D | ast_opt.c | 404 static int astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 468 astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_mod() 859 _PyAST_Optimize(mod_ty mod, PyArena *arena, _PyASTOptimizeState *state) in _PyAST_Optimize()
|
D | Python-ast.c | 360 GENERATE_ASDL_SEQ_CONSTRUCTOR(mod, mod_ty) 1845 static int obj2ast_mod(struct ast_state *state, PyObject* obj, mod_ty* out, 1882 mod_ty 1886 mod_ty p; in _PyAST_Module() 1887 p = (mod_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_Module() 1896 mod_ty 1899 mod_ty p; in _PyAST_Interactive() 1900 p = (mod_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_Interactive() 1908 mod_ty 1911 mod_ty p; in _PyAST_Expression() [all …]
|
D | symtable.c | 282 _PySymtable_Build(mod_ty mod, PyObject *filename, PyFutureFeatures *future) in _PySymtable_Build() 2139 mod_ty mod; in _Py_SymtableStringObjectFlags()
|
D | ast.c | 922 _PyAST_Validate(mod_ty mod) in _PyAST_Validate()
|
D | bltinmodule.c | 819 mod_ty mod; in builtin_compile_impl()
|
D | compile.c | 271 static PyCodeObject *compiler_mod(struct compiler *, mod_ty); 403 _PyAST_Compile(mod_ty mod, PyObject *filename, PyCompilerFlags *flags, in _PyAST_Compile() 1937 compiler_mod(struct compiler *c, mod_ty mod) in compiler_mod()
|
/third_party/python/Grammar/ |
D | python.gram | 31 file[mod_ty]: a=[statements] ENDMARKER { _PyPegen_make_module(p, a) } 32 interactive[mod_ty]: a=statement_newline { _PyAST_Interactive(a, p->arena) } 33 eval[mod_ty]: a=expressions NEWLINE* ENDMARKER { _PyAST_Expression(a, p->arena) } 34 func_type[mod_ty]: '(' a=[type_expressions] ')' '->' b=expression NEWLINE* ENDMARKER { _PyAST_Funct…
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a7.rst | 981 a AST object (``mod_ty`` type) with the public C API. The function was
|
/third_party/python/Doc/whatsnew/ |
D | 3.10.rst | 2249 AST object (``mod_ty`` type) with the public C API. The function was already
|