Home
last modified time | relevance | path

Searched refs:NT_OFFSET (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython2/Include/
Dtoken.h70 #define NT_OFFSET 256 macro
72 #define ISTERMINAL(x) ((x) < NT_OFFSET)
73 #define ISNONTERMINAL(x) ((x) >= NT_OFFSET)
/external/python/cpython2/Lib/lib2to3/pgen2/
Dtoken.py67 NT_OFFSET = 256 variable
77 return x < NT_OFFSET
80 return x >= NT_OFFSET
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtoken.py70 NT_OFFSET = 256 variable
80 return x < NT_OFFSET
83 return x >= NT_OFFSET
/external/python/cpython3/Include/
Dtoken.h74 #define NT_OFFSET 256 macro
78 #define ISTERMINAL(x) ((x) < NT_OFFSET)
79 #define ISNONTERMINAL(x) ((x) >= NT_OFFSET)
/external/python/cpython3/Lib/
Dtoken.py72 NT_OFFSET = 256 variable
130 return x < NT_OFFSET
133 return x >= NT_OFFSET
/external/python/cpython2/Lib/
Dtoken.py65 NT_OFFSET = 256 variable
76 return x < NT_OFFSET
79 return x >= NT_OFFSET
/external/python/cpython3/Tools/scripts/
Dgenerate_token.py10 NT_OFFSET = 256 variable
100 NT_OFFSET
259 NT_OFFSET,
/external/python/cpython3/Parser/
Dacceler.c88 if (type - NT_OFFSET >= (1 << 7)) { in fixstate()
97 ((type - NT_OFFSET) << 8); in fixstate()
Dgrammar1.c14 const dfa *d = &g->g_dfa[type - NT_OFFSET]; in PyGrammar_FindDFA()
Dparser.c262 int nt = (x >> 8) + NT_OFFSET; in PyParser_AddToken()
/external/python/cpython2/Parser/
Dacceler.c90 if (type - NT_OFFSET >= (1 << 7)) { in fixstate()
99 ((type - NT_OFFSET) << 8); in fixstate()
Dgrammar1.c17 d = &g->g_dfa[type - NT_OFFSET]; in PyGrammar_FindDFA()
Dparser.c248 int nt = (x >> 8) + NT_OFFSET; in PyParser_AddToken()
Dpgen.c82 static int type = NT_OFFSET; /* All types will be disjunct */ in newnfa()
/external/python/cpython3/Modules/
Dparsermodule.c650 type -= NT_OFFSET; in validate_node()
663 if ((ch_type >= NT_OFFSET + _PyParser_Grammar.g_ndfas) in validate_node()
705 _PyParser_Grammar.g_dfa[next_type - NT_OFFSET].d_name, in validate_node()
707 _PyParser_Grammar.g_dfa[ch_type - NT_OFFSET].d_name); in validate_node()
/external/python/cpython2/Doc/library/
Dtoken.rst100 NT_OFFSET
/external/python/cpython3/Doc/library/
Dtoken-list.inc218 .. data:: NT_OFFSET
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
Dsnippet.py222 if node_type >= token.NT_OFFSET: