Home
last modified time | relevance | path

Searched refs:symtable (Results 1 – 25 of 54) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_symtable.py4 import symtable
54 top = symtable.symtable(TEST_CODE, "?", "exec")
163 st1 = symtable.symtable('def f():\n x: int\n', 'test', 'exec')
168 st3 = symtable.symtable('def f():\n x = 1\n', 'test', 'exec')
175 st5 = symtable.symtable('global x\nx: int', 'test', 'exec')
180 st6 = symtable.symtable('def g():\n'
204 symtable.symtable(brokencode, "spam", "exec")
213 symtable.symtable("pass", b"spam", "exec")
216 symtable.symtable("pass", bytearray(b"spam"), "exec")
218 symtable.symtable("pass", memoryview(b"spam"), "exec")
[all …]
/external/python/cpython3/Include/
Dsymtable.h19 struct symtable { struct
67 struct symtable *ste_table;
76 PyAPI_FUNC(struct symtable *) PySymtable_Build(
80 PyAPI_FUNC(struct symtable *) PySymtable_BuildObject(
84 PyAPI_FUNC(PySTEntryObject *) PySymtable_Lookup(struct symtable *, void *);
86 PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
Dpythonrun.h123 PyAPI_FUNC(struct symtable *) Py_SymtableString(
135 PyAPI_FUNC(struct symtable *) Py_SymtableStringObject(
140 PyAPI_FUNC(struct symtable *) _Py_SymtableStringObjectFlags(
/external/python/cpython2/Python/
Dsymtable.c21 ste_new(struct symtable *st, identifier name, _Py_block_ty block, in ste_new()
164 static int symtable_analyze(struct symtable *st);
165 static int symtable_warn(struct symtable *st,
167 static int symtable_enter_block(struct symtable *st, identifier name,
169 static int symtable_exit_block(struct symtable *st, void *ast);
170 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
171 static int symtable_visit_expr(struct symtable *st, expr_ty s);
172 static int symtable_visit_listcomp(struct symtable *st, expr_ty e);
173 static int symtable_visit_genexp(struct symtable *st, expr_ty s);
174 static int symtable_visit_setcomp(struct symtable *st, expr_ty e);
[all …]
Dpythonrun.c1447 struct symtable *
1450 struct symtable *st; in Py_SymtableString()
/external/python/cpython2/Lib/test/
Dtest_symtable.py4 import symtable
48 top = symtable.symtable(TEST_CODE, "?", "exec")
162 symtable.symtable(brokencode, "spam", "exec")
171 symbols = symtable.symtable("42", "?", "eval")
174 symbols = symtable.symtable("42", "?", "single")
177 symbols = symtable.symtable("def f(x): return x", "?", "exec")
/external/python/cpython2/Include/
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 *);
Dpythonrun.h68 PyAPI_FUNC(struct symtable *) Py_SymtableString(const char *, const char *, int);
/external/python/cpython3/Python/
Dsymtable.c47 ste_new(struct symtable *st, identifier name, _Py_block_ty block, in ste_new()
189 static int symtable_analyze(struct symtable *st);
190 static int symtable_enter_block(struct symtable *st, identifier name,
193 static int symtable_exit_block(struct symtable *st);
194 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
195 static int symtable_visit_expr(struct symtable *st, expr_ty s);
196 static int symtable_visit_genexp(struct symtable *st, expr_ty s);
197 static int symtable_visit_listcomp(struct symtable *st, expr_ty s);
198 static int symtable_visit_setcomp(struct symtable *st, expr_ty s);
199 static int symtable_visit_dictcomp(struct symtable *st, expr_ty s);
[all …]
Dpythonrun.c1348 struct symtable *
1355 struct symtable *
1358 struct symtable *st; in _Py_SymtableStringObjectFlags()
1382 struct symtable *
1386 struct symtable *st; in Py_SymtableString()
/external/python/cpython3/Doc/library/
Dsymtable.rst1 :mod:`symtable` --- Access to the compiler's symbol tables
4 .. module:: symtable
7 **Source code:** :source:`Lib/symtable.py`
17 identifier in the code. :mod:`symtable` provides an interface to examine these
24 .. function:: symtable(code, filename, compile_type)
177 >>> table = symtable.symtable("def some_func(): pass", "string", "exec")
Dlanguage.rst18 symtable.rst
/external/python/cpython2/Doc/library/
Dsymtable.rst1 :mod:`symtable` --- Access to the compiler's symbol tables
4 .. module:: symtable
7 **Source code:** :source:`Lib/symtable.py`
17 identifier in the code. :mod:`symtable` provides an interface to examine these
24 .. function:: symtable(code, filename, compile_type)
177 >>> table = symtable.symtable("def some_func(): pass", "string", "exec")
Dlanguage.rst19 symtable.rst
/external/python/cpython2/Lib/
Dsymtable.py12 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/
Dsymtable.py12 def symtable(code, filename, compile_type): function
13 top = _symtable.symtable(code, filename, compile_type)
249 mod = symtable(src, os.path.split(sys.argv[0])[1], "exec")
/external/python/cpython2/Modules/
Dsymtablemodule.c11 struct symtable *st; in symtable_symtable()
/external/python/cpython3/Modules/
Dsymtablemodule.c30 struct symtable *st; in _symtable_symtable_impl()
/external/python/cpython2/Lib/compiler/
Dsymbols.py417 import symtable
428 syms = symtable.symtable(buf, file, "exec")
/external/tensorflow/third_party/toolchains/preconfig/ubuntu16.04/py/
DBUILD152 "python_include/symtable.h",
164 …_include/structseq.h" && cp -f "/usr/include/python2.7/symtable.h" "$(@D)/python_include/symtable.…
/external/icu/tools/icu4c_srcgen/
Dcxxfiles.txt137 symtable.h
/external/tensorflow/third_party/toolchains/preconfig/win_1803/py37/
DBUILD171 "python_include/symtable.h",
183 …hon_include/structseq.h" && cp -f "c:/python37/include/symtable.h" "$(@D)/python_include/symtable.…
/external/python/cpython3/Tools/c-analyzer/
Dignored-globals.txt469 # Python/symtable.c
/external/tensorflow/third_party/toolchains/preconfig/win_1803/py38/
DBUILD193 "python_include/symtable.h",
206 …hon_include/structseq.h" && cp -f "c:/Python38/include/symtable.h" "$(@D)/python_include/symtable.…
/external/python/cpython2/Misc/
Dmaintainers.rst215 symtable benjamin.peterson

123