Searched refs:symtable (Results 1 - 19 of 19) sorted by relevance

/external/python/cpython3/Include/
H A Dsymtable.h18 struct symtable { struct
64 struct symtable *ste_table;
73 PyAPI_FUNC(struct symtable *) PySymtable_Build(
77 PyAPI_FUNC(struct symtable *) PySymtable_BuildObject(
81 PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
83 PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
H A Dpythonrun.h133 PyAPI_FUNC(struct symtable *) Py_SymtableString(
138 PyAPI_FUNC(struct symtable *) Py_SymtableStringObject(
/external/python/cpython3/Lib/test/
H A Dtest_symtable.py2 Test the API of the symtable module.
4 import symtable namespace
44 top = symtable.symtable(TEST_CODE, "?", "exec")
137 st1 = symtable.symtable('def f():\n x: int\n', 'test', 'exec')
142 st3 = symtable.symtable('def f():\n x = 1\n', 'test', 'exec')
164 symtable.symtable(brokencod
[all...]
/external/python/cpython2/Include/
H A Dsymtable.h13 struct symtable { struct
46 struct symtable *ste_table;
55 PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
57 PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
59 PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
H A Dpythonrun.h68 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int);
/external/python/cpython2/Lib/test/
H A Dtest_symtable.py2 Test the API of the symtable module.
4 import symtable namespace
48 top = symtable.symtable(TEST_CODE, "?", "exec")
162 symtable.symtable(brokencode, "spam", "exec")
168 checkfilename("def f(x): global x") # symtable-build-time
171 symbols = symtable.symtable("42", "?", "eval")
174 symbols = symtable
[all...]
/external/python/cpython3/Python/
H A Dsymtable.c4 #include "symtable.h"
29 ste_new(struct symtable *st, identifier name, _Py_block_ty block,
96 return PyUnicode_FromFormat("<symtable entry %U(%ld), line %d>",
130 "symtable entry",
169 static int symtable_analyze(struct symtable *st);
170 static int symtable_enter_block(struct symtable *st, identifier name,
173 static int symtable_exit_block(struct symtable *st, void *ast);
174 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
175 static int symtable_visit_expr(struct symtable *st, expr_ty s);
176 static int symtable_visit_genexp(struct symtable *s
[all...]
H A Dpythonrun.c14 #include "symtable.h"
1068 struct symtable *
1071 struct symtable *st;
1091 struct symtable *
1095 struct symtable *st;
H A Dcompile.c8 * 2. Builds a symbol table. See symtable.c.
30 #include "symtable.h"
153 struct symtable *c_st;
337 PyErr_SetString(PyExc_SystemError, "no symtable");
453 /* XXX this should probably be a macro in symtable.h */
3622 flagged in symtable.c as a generator, so it returns the generator object
/external/python/cpython2/Python/
H A Dsymtable.c4 #include "symtable.h"
21 ste_new(struct symtable *st, identifier name, _Py_block_ty block,
90 "<symtable entry %.100s(%ld), line %d>",
125 "symtable entry",
164 static int symtable_analyze(struct symtable *st);
165 static int symtable_warn(struct symtable *st, char *msg, int lineno);
166 static int symtable_enter_block(struct symtable *st, identifier name,
168 static int symtable_exit_block(struct symtable *st, void *ast);
169 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
170 static int symtable_visit_expr(struct symtable *s
[all...]
H A Dpythonrun.c15 #include "symtable.h"
1438 struct symtable *
1441 struct symtable *st;
H A Dcompile.c8 * 2. Builds a symbol table. See symtable.c.
32 #include "symtable.h"
137 struct symtable *c_st;
288 PyErr_SetString(PyExc_SystemError, "no symtable");
390 /* XXX this should probably be a macro in symtable.h */
2644 flagged in symtable.c as a generator, so it returns the generator object
/external/python/cpython2/Modules/
H A Dsymtablemodule.c6 #include "symtable.h"
11 struct symtable *st;
19 if (!PyArg_ParseTuple(args, "sss:symtable", &str, &filename,
30 "symtable() arg 3 must be 'exec' or 'eval' or 'single'");
44 {"symtable", symtable_symtable, METH_VARARGS,
/external/python/cpython3/Modules/
H A Dsymtablemodule.c5 #include "symtable.h"
10 struct symtable *st;
18 if (!PyArg_ParseTuple(args, "sO&s:symtable",
29 "symtable() arg 3 must be 'exec' or 'eval' or 'single'");
45 {"symtable", symtable_symtable, METH_VARARGS,
/external/python/cpython2/Lib/
H A Dsymtable.py10 __all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
12 def symtable(code, filename, compile_type): function
13 top = _symtable.symtable(code, filename, compile_type)
236 mod = symtable(src, os.path.split(sys.argv[0])[1], "exec")
/external/python/cpython3/Lib/
H A Dsymtable.py10 __all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
12 def symtable(code, filename, compile_type): function
13 top = _symtable.symtable(code, filename, compile_type)
235 mod = symtable(src, os.path.split(sys.argv[0])[1], "exec")
/external/python/cpython2/Lib/compiler/
H A Dsymbols.py417 import symtable namespace
428 syms = symtable.symtable(buf, file, "exec")
/external/python/cpython2/RISCOS/
H A DMakefile131 @.^.Python.o.symtable\
/external/python/cpython2/PC/os2vacpp/
H A Dmakefile125 $(PATHOBJ)\symtable.obj \

Completed in 987 milliseconds