27 lines
1.6 KiB
Python
27 lines
1.6 KiB
Python
"""
|
|
Auto-generated Python stub file from ast.__init__.py
|
|
Module: ast.__init__
|
|
"""
|
|
|
|
|
|
import t, c
|
|
from stdint import *
|
|
import memhub
|
|
import string
|
|
from .tokens import Token, TokenType, Keyword, TokOp, _init_tables
|
|
from .base import AST, ASTKind, ASTCtx, OpKind, ASTFlag, CONST_INT, CONST_FLOAT, CONST_STR, CONST_BOOL, CONST_NONE, FLAG_IS_ASYNC, FLAG_SIMPLE, FLAG_HAS_STAR, _init_ast, _copy_str, _set_pos, _inherit_pos, _set_parent_list, _binop_from_op, _augop_from_op, _cmpop_from_op, _emit, _emit_str, _emit_int, _dump_list, dump
|
|
from .stmts import Module, Expression, Interactive, FunctionType, FunctionDef, ClassDef, Return, Delete, Assign, AugAssign, AnnAssign, For, While, If, With, Raise, Try, Assert, Global, Nonlocal, Pass, Break, Continue, Expr, Import, ImportFrom, Match
|
|
from .exprs import BoolOp, BinOp, UnaryOp, Lambda, IfExp, Dict, Set, ListComp, SetComp, DictComp, GeneratorExp, Await, Yield, YieldFrom, FormattedValue, JoinedStr, Constant, NamedExpr, Attribute, Subscript, Starred, Name, List, Tuple, Slice, Call, Compare, OpNode
|
|
from .astaux import ExceptHandler, Arguments, Arg, Keyword, Alias, WithItem, Comprehension
|
|
from .match import MatchCase, MatchValue, MatchSingleton, MatchSequence, MatchMapping, MatchClass, MatchStar, MatchAs, MatchOr
|
|
from .visitor import ASTVisitor
|
|
from .lexer import Lexer, _lexer_init, tokenize, new_lexer
|
|
from .parser import Parser, _parser_init, parse_tokens, new_parser
|
|
from .parser import _parse_test
|
|
|
|
_mbuddy: t.CExtern | memhub.MemBuddy | t.CPtr
|
|
|
|
def parse(src: str, pool: memhub.MemManager | t.CPtr) -> AST | t.CPtr: pass
|
|
|
|
def parse_expression(src: str, pool: memhub.MemManager | t.CPtr) -> AST | t.CPtr: pass
|