symbol.py

来自「mallet是自然语言处理、机器学习领域的一个开源项目。」· Python 代码 · 共 96 行

PY
96
字号
#! /usr/bin/env python"""Non-terminal symbols of Python grammar (from "graminit.h")."""#  This file is automatically generated; please don't muck it up!##  To update the symbols in this file, 'cd' to the top directory of#  the python source tree after building the interpreter and run:##    python Lib/symbol.py#--start constants--single_input = 256file_input = 257eval_input = 258funcdef = 259parameters = 260varargslist = 261fpdef = 262fplist = 263stmt = 264simple_stmt = 265small_stmt = 266expr_stmt = 267augassign = 268print_stmt = 269del_stmt = 270pass_stmt = 271flow_stmt = 272break_stmt = 273continue_stmt = 274return_stmt = 275yield_stmt = 276raise_stmt = 277import_stmt = 278import_as_name = 279dotted_as_name = 280dotted_name = 281global_stmt = 282exec_stmt = 283assert_stmt = 284compound_stmt = 285if_stmt = 286while_stmt = 287for_stmt = 288try_stmt = 289except_clause = 290suite = 291test = 292and_test = 293not_test = 294comparison = 295comp_op = 296expr = 297xor_expr = 298and_expr = 299shift_expr = 300arith_expr = 301term = 302factor = 303power = 304atom = 305listmaker = 306lambdef = 307trailer = 308subscriptlist = 309subscript = 310sliceop = 311exprlist = 312testlist = 313testlist_safe = 314dictmaker = 315classdef = 316arglist = 317argument = 318list_iter = 319list_for = 320list_if = 321#--end constants--sym_name = {}for _name, _value in globals().items():    if type(_value) is type(0):        sym_name[_value] = _namedef main():    import sys    import token    if len(sys.argv) == 1:        sys.argv = sys.argv + ["Include/graminit.h", "Lib/symbol.py"]    token.main()if __name__ == "__main__":    main()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?