package pyast

  1. Overview
  2. Docs
type num =
  1. | Int of int
  2. | Float of float
  3. | Big_int of Py.Object.t
type object_ = num
val num : Py.Object.t -> num
val object_ : Py.Object.t -> num
type constant_desc =
  1. | Ellipsis
  2. | Bool of bool
  3. | Num of num
  4. | Str of string
type constant = constant_desc option
type singleton = bool option
val to_option_map : (Py.Object.t -> 'a) -> Py.Object.t -> 'a0 option
val get_class_name : Py.Object.t -> string
val constant_desc : Py.Object.t -> constant_desc
val constant : Py.Object.t -> constant_desc option
val singleton : Py.Object.t -> bool option
val option_apply : ('a -> 'b) -> 'a0 option -> 'b0
val option_bind : ('a -> 'b option) -> 'a option -> 'b option
val list_option_bind : ('a -> 'b list) -> 'a0 option -> 'b0 list
val bool_of_int : Py.Object.t -> bool
val get_attr_string : Py.Object.t -> string -> Py.Object.t option
val encoded_slice : string
val version : Pyast_utils.Version.t
module Ast : sig ... end
include module type of struct include Ast end
type withitem = Ast.withitem = {
  1. context_expr : expr;
  2. optional_vars : expr option;
}
and unaryop = Ast.unaryop =
  1. | Invert
  2. | Not
  3. | UAdd
  4. | USub
and type_ignore = Ast.type_ignore =
  1. | TypeIgnore of {
    1. lineno : int;
    2. tag : string;
    }
and stmt = Ast.stmt = {
  1. desc : stmt_desc;
  2. lineno : int;
  3. col_offset : int;
  4. end_lineno : int option;
  5. end_col_offset : int option;
}
and stmt_desc = Ast.stmt_desc =
  1. | FunctionDef of {
    1. name : string;
    2. args : arguments;
    3. body : stmt list;
    4. decorator_list : expr list;
    5. returns : expr option;
    6. type_comment : string option;
    }
  2. | AsyncFunctionDef of {
    1. name : string;
    2. args : arguments;
    3. body : stmt list;
    4. decorator_list : expr list;
    5. returns : expr option;
    6. type_comment : string option;
    }
  3. | ClassDef of {
    1. name : string;
    2. bases : expr list;
    3. keywords : keyword list;
    4. body : stmt list;
    5. decorator_list : expr list;
    }
  4. | Return of expr option
  5. | Delete of expr list
  6. | Assign of {
    1. targets : expr list;
    2. value : expr;
    3. type_comment : string option;
    }
  7. | AugAssign of {
    1. target : expr;
    2. op : operator;
    3. value : expr;
    }
  8. | AnnAssign of {
    1. target : expr;
    2. annotation : expr;
    3. value : expr option;
    4. simple : int;
    }
  9. | For of {
    1. target : expr;
    2. iter : expr;
    3. body : stmt list;
    4. orelse : stmt list;
    5. type_comment : string option;
    }
  10. | AsyncFor of {
    1. target : expr;
    2. iter : expr;
    3. body : stmt list;
    4. orelse : stmt list;
    5. type_comment : string option;
    }
  11. | While of {
    1. test : expr;
    2. body : stmt list;
    3. orelse : stmt list;
    }
  12. | If of {
    1. test : expr;
    2. body : stmt list;
    3. orelse : stmt list;
    }
  13. | With of {
    1. items : withitem list;
    2. body : stmt list;
    3. type_comment : string option;
    }
  14. | AsyncWith of {
    1. items : withitem list;
    2. body : stmt list;
    3. type_comment : string option;
    }
  15. | Raise of {
    1. exc : expr option;
    2. cause : expr option;
    }
  16. | Try of {
    1. body : stmt list;
    2. handlers : excepthandler list;
    3. orelse : stmt list;
    4. finalbody : stmt list;
    }
  17. | Assert of {
    1. test : expr;
    2. msg : expr option;
    }
  18. | Import of alias list
  19. | ImportFrom of {
    1. module_ : string option;
    2. names : alias list;
    3. level : int option;
    }
  20. | Global of string list
  21. | Nonlocal of string list
  22. | Expr of expr
  23. | Pass
  24. | Break
  25. | Continue
and slice = Ast.slice =
  1. | Slice of {
    1. lower : expr option;
    2. upper : expr option;
    3. step : expr option;
    }
  2. | ExtSlice of slice list
  3. | Index of expr
and pattern = unit
and operator = Ast.operator =
  1. | Add
  2. | Sub
  3. | Mult
  4. | MatMult
  5. | Div
  6. | Mod
  7. | Pow
  8. | LShift
  9. | RShift
  10. | BitOr
  11. | BitXor
  12. | BitAnd
  13. | FloorDiv
and mod_ = Ast.mod_ =
  1. | Module of {
    1. body : stmt list;
    2. type_ignores : type_ignore list;
    }
  2. | Interactive of stmt list
  3. | Expression of expr
  4. | FunctionType of {
    1. argtypes : expr list;
    2. returns : expr;
    }
  5. | Suite of stmt list
and match_case = unit
and keyword = Ast.keyword = {
  1. arg : string option;
  2. value : expr;
}
and expr_context = Ast.expr_context =
  1. | Load
  2. | Store
  3. | Del
  4. | AugLoad
  5. | AugStore
  6. | Param
and expr = Ast.expr = {
  1. desc : expr_desc;
  2. lineno : int;
  3. col_offset : int;
  4. end_lineno : int option;
  5. end_col_offset : int option;
}
and expr_desc = Ast.expr_desc =
  1. | BoolOp of {
    1. op : boolop;
    2. values : expr list;
    }
  2. | NamedExpr of {
    1. target : expr;
    2. value : expr;
    }
  3. | BinOp of {
    1. left : expr;
    2. op : operator;
    3. right : expr;
    }
  4. | UnaryOp of {
    1. op : unaryop;
    2. operand : expr;
    }
  5. | Lambda of {
    1. args : arguments;
    2. body : expr;
    }
  6. | IfExp of {
    1. test : expr;
    2. body : expr;
    3. orelse : expr;
    }
  7. | Dict of {
    1. keys : expr list;
    2. values : expr list;
    }
  8. | Set of expr list
  9. | ListComp of {
    1. elt : expr;
    2. generators : comprehension list;
    }
  10. | SetComp of {
    1. elt : expr;
    2. generators : comprehension list;
    }
  11. | DictComp of {
    1. key : expr;
    2. value : expr;
    3. generators : comprehension list;
    }
  12. | GeneratorExp of {
    1. elt : expr;
    2. generators : comprehension list;
    }
  13. | Await of expr
  14. | Yield of expr option
  15. | YieldFrom of expr
  16. | Compare of {
    1. left : expr;
    2. ops : cmpop list;
    3. comparators : expr list;
    }
  17. | Call of {
    1. func : expr;
    2. args : expr list;
    3. keywords : keyword list;
    }
  18. | FormattedValue of {
    1. value : expr;
    2. conversion : int option;
    3. format_spec : expr option;
    }
  19. | JoinedStr of expr list
  20. | Constant of {
    1. value : constant;
    2. kind : string option;
    }
  21. | Attribute of {
    1. value : expr;
    2. attr : string;
    3. ctx : expr_context;
    }
  22. | Subscript of {
    1. value : expr;
    2. slice : slice;
    3. ctx : expr_context;
    }
  23. | Starred of {
    1. value : expr;
    2. ctx : expr_context;
    }
  24. | Name of {
    1. id : string;
    2. ctx : expr_context;
    }
  25. | List of {
    1. elts : expr list;
    2. ctx : expr_context;
    }
  26. | Tuple of {
    1. elts : expr list;
    2. ctx : expr_context;
    }
and excepthandler = Ast.excepthandler = {
  1. desc : excepthandler_desc;
  2. lineno : int;
  3. col_offset : int;
  4. end_lineno : int option;
  5. end_col_offset : int option;
}
and excepthandler_desc = Ast.excepthandler_desc =
  1. | ExceptHandler of {
    1. type_ : expr option;
    2. name : string option;
    3. body : stmt list;
    }
and comprehension = Ast.comprehension = {
  1. target : expr;
  2. iter : expr;
  3. ifs : expr list;
  4. is_async : bool;
}
and cmpop = Ast.cmpop =
  1. | Eq
  2. | NotEq
  3. | Lt
  4. | LtE
  5. | Gt
  6. | GtE
  7. | Is
  8. | IsNot
  9. | In
  10. | NotIn
and boolop = Ast.boolop =
  1. | And
  2. | Or
and arguments = Ast.arguments = {
  1. posonlyargs : arg list;
  2. args : arg list;
  3. vararg : arg option;
  4. kwonlyargs : arg list;
  5. kw_defaults : expr list;
  6. kwarg : arg option;
  7. defaults : expr list;
}
and arg = Ast.arg = {
  1. arg : string;
  2. annotation : expr option;
  3. type_comment : string option;
  4. lineno : int;
  5. col_offset : int;
  6. end_lineno : int option;
  7. end_col_offset : int option;
}
and alias = Ast.alias = {
  1. name : string;
  2. asname : string option;
}
type arguments_args = Ast.arguments_args =
  1. | Expr_list of expr list
  2. | Arg_list of arg list
type arguments_kwarg = Ast.arguments_kwarg =
  1. | Identifier_opt of string option
  2. | Arg_opt of arg option
type arguments_vararg = Ast.arguments_vararg =
  1. | Identifier_opt of string option
  2. | Arg_opt of arg option
type excepthandler_excepthandler_name = Ast.excepthandler_excepthandler_name =
  1. | Identifier_opt of string option
  2. | Expr_opt of expr option
type expr_bytes_s = Ast.expr_bytes_s =
  1. | String of string
  2. | Bytes of string
type expr_formattedvalue_conversion = Ast.expr_formattedvalue_conversion =
  1. | Int_opt of int option
  2. | Int of int
type expr_subscript_slice = Ast.expr_subscript_slice =
  1. | Slice of slice
  2. | Expr of expr
type expr_yieldfrom_value = Ast.expr_yieldfrom_value =
  1. | Expr_opt of expr option
  2. | Expr of expr
type keyword_arg = Ast.keyword_arg =
  1. | Identifier_opt of string option
  2. | Identifier of string
type stmt_importfrom_module = Ast.stmt_importfrom_module =
  1. | Identifier_opt of string option
  2. | Identifier of string
val withitem : ?optional_vars:expr option -> ?context_expr:expr -> unit -> withitem
val unaryop_usub : unit -> unaryop
val unaryop_uadd : unit -> unaryop
val unaryop_not : unit -> unaryop
val unaryop_invert : unit -> unaryop
val type_ignore_typeignore : ?tag:string -> ?lineno:int -> unit -> type_ignore
val stmt_with : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?optional_vars:'a -> ?items:withitem list -> ?context_expr:'b -> ?body:stmt list -> unit -> stmt
val stmt_while : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?test:expr -> ?orelse:stmt list -> ?body:stmt list -> unit -> stmt
val stmt_trystar : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?orelse:'e -> ?handlers:'f -> ?finalbody:'g -> ?body:'h -> unit -> stmt
val stmt_tryfinally : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?finalbody:stmt list -> ?body:stmt list -> unit -> stmt
val stmt_tryexcept : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?orelse:stmt list -> ?handlers:excepthandler list -> ?body:stmt list -> unit -> stmt
val stmt_try : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?orelse:stmt list -> ?handlers:excepthandler list -> ?finalbody:stmt list -> ?body:stmt list -> unit -> stmt
val stmt_return : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr option -> unit -> stmt
val stmt_raise : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_:'a -> ?tback:'b -> ?inst:'c -> ?exc:expr option -> ?cause:expr option -> unit -> stmt
val stmt_print : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?values:expr list -> ?nl:'e -> ?dest:'f -> unit -> stmt
val stmt_pass : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> unit -> stmt
val stmt_nonlocal : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?names:string list -> unit -> stmt
val stmt_match : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?subject:'e -> ?cases:'f -> unit -> stmt
val stmt_importfrom : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?names:alias list -> ?module_:stmt_importfrom_module -> ?level:int option -> unit -> stmt
val stmt_import : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?names:alias list -> unit -> stmt
val stmt_if : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?test:expr -> ?orelse:stmt list -> ?body:stmt list -> unit -> stmt
val stmt_global : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?names:string list -> unit -> stmt
val stmt_functiondef : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?returns:expr option -> ?name:string -> ?decorators:'a -> ?decorator_list:expr list -> ?body:stmt list -> ?args:arguments -> unit -> stmt
val stmt_for : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?target:expr -> ?orelse:stmt list -> ?iter:expr -> ?body:stmt list -> unit -> stmt
val stmt_expr : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> unit -> stmt
val stmt_exec : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?locals:'e -> ?globals:'f -> ?body:'g -> unit -> stmt
val stmt_delete : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?targets:expr list -> unit -> stmt
val stmt_continue : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> unit -> stmt
val stmt_classdef : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?starargs:'a -> ?name:string -> ?kwargs:'b -> ?keywords:keyword list -> ?decorator_list:expr list -> ?body:stmt list -> ?bases:expr list -> unit -> stmt
val stmt_break : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> unit -> stmt
val stmt_augassign : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?target:expr -> ?op:operator -> unit -> stmt
val stmt_asyncwith : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?items:withitem list -> ?body:stmt list -> unit -> stmt
val stmt_asyncfunctiondef : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?returns:expr option -> ?name:string -> ?decorator_list:expr list -> ?body:stmt list -> ?args:arguments -> unit -> stmt
val stmt_asyncfor : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?target:expr -> ?orelse:stmt list -> ?iter:expr -> ?body:stmt list -> unit -> stmt
val stmt_assign : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?type_comment:string option -> ?targets:expr list -> unit -> stmt
val stmt_assert : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?test:expr -> ?msg:expr option -> unit -> stmt
val stmt_annassign : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr option -> ?target:expr -> ?simple:int -> ?annotation:expr -> unit -> stmt
val slice_slice : ?upper:expr option -> ?step:expr option -> ?lower:expr option -> unit -> slice
val slice_index : ?value:expr -> unit -> slice
val slice_extslice : ?dims:slice list -> unit -> slice
val slice_ellipsis : unit -> slice
val pattern_matchvalue : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?value:'e -> unit -> pattern
val pattern_matchstar : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?name:'e -> unit -> pattern
val pattern_matchsingleton : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?value:'e -> unit -> pattern
val pattern_matchsequence : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?patterns:'e -> unit -> pattern
val pattern_matchor : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?patterns:'e -> unit -> pattern
val pattern_matchmapping : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?rest:'e -> ?patterns:'f -> ?keys:'g -> unit -> pattern
val pattern_matchclass : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?patterns:'e -> ?kwd_patterns:'f -> ?kwd_attrs:'g -> ?cls:'h -> unit -> pattern
val pattern_matchas : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?pattern:'e -> ?name:'f -> unit -> pattern
val operator_sub : unit -> operator
val operator_rshift : unit -> operator
val operator_pow : unit -> operator
val operator_mult : unit -> operator
val operator_mod : unit -> operator
val operator_matmult : unit -> operator
val operator_lshift : unit -> operator
val operator_floordiv : unit -> operator
val operator_div : unit -> operator
val operator_bitxor : unit -> operator
val operator_bitor : unit -> operator
val operator_bitand : unit -> operator
val operator_add : unit -> operator
val mod_suite : ?body:stmt list -> unit -> mod_
val mod_module : ?type_ignores:type_ignore list -> ?body:stmt list -> unit -> mod_
val mod_interactive : ?body:stmt list -> unit -> mod_
val mod_functiontype : ?returns:expr -> ?argtypes:expr list -> unit -> mod_
val mod_expression : ?body:expr -> unit -> mod_
val match_case : ?pattern:'a -> ?guard:'b -> ?body:'c -> unit -> match_case
val keyword : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?value:expr -> ?arg:keyword_arg -> unit -> keyword
val expr_context_store : unit -> expr_context
val expr_context_param : unit -> expr_context
val expr_context_load : unit -> expr_context
val expr_context_del : unit -> expr_context
val expr_context_augstore : unit -> expr_context
val expr_context_augload : unit -> expr_context
val expr_yieldfrom : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr_yieldfrom_value -> unit -> expr
val expr_yield : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr option -> unit -> expr
val expr_unaryop : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?operand:expr -> ?op:unaryop -> unit -> expr
val expr_tuple : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?elts:expr list -> ?ctx:expr_context -> unit -> expr
val expr_subscript : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?slice:expr_subscript_slice -> ?ctx:expr_context -> unit -> expr
val expr_str : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?s:string -> unit -> expr
val expr_starred : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?ctx:expr_context -> unit -> expr
val expr_slice : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?upper:expr option -> ?step:expr option -> ?lower:expr option -> unit -> expr
val expr_setcomp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?generators:comprehension list -> ?elt:expr -> unit -> expr
val expr_set : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?elts:expr list -> unit -> expr
val expr_repr : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?value:'e -> unit -> expr
val expr_num : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?n:num -> unit -> expr
val expr_namedexpr : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?target:expr -> unit -> expr
val expr_nameconstant : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:bool option -> unit -> expr
val expr_name : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?id:string -> ?ctx:expr_context -> unit -> expr
val expr_listcomp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?generators:comprehension list -> ?elt:expr -> unit -> expr
val expr_list : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?elts:expr list -> ?ctx:expr_context -> unit -> expr
val expr_lambda : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?body:expr -> ?args:arguments -> unit -> expr
val expr_joinedstr : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> unit -> expr
val expr_ifexp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?test:expr -> ?orelse:expr -> ?body:expr -> unit -> expr
val expr_generatorexp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?generators:comprehension list -> ?elt:expr -> unit -> expr
val expr_formattedvalue : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?format_spec:expr option -> ?conversion:expr_formattedvalue_conversion -> unit -> expr
val expr_ellipsis : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> unit -> expr
val expr_dictcomp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?key:expr -> ?generators:comprehension list -> unit -> expr
val expr_dict : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> ?keys:expr list -> unit -> expr
val expr_constant : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:constant -> ?kind:string option -> unit -> expr
val expr_compare : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?ops:cmpop list -> ?left:expr -> ?comparators:expr list -> unit -> expr
val expr_call : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?starargs:'a -> ?kwargs:'b -> ?keywords:keyword list -> ?func:expr -> ?args:expr list -> unit -> expr
val expr_bytes : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?s:'e -> unit -> expr
val expr_boolop : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> ?op:boolop -> unit -> expr
val expr_binop : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?right:expr -> ?op:operator -> ?left:expr -> unit -> expr
val expr_await : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> unit -> expr
val expr_attribute : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?ctx:expr_context -> ?attr:string -> unit -> expr
val excepthandler_excepthandler : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_:expr option -> ?name:excepthandler_excepthandler_name -> ?body:stmt list -> unit -> excepthandler
val excepthandler : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?type_:'e -> ?name:'f -> ?lineno:'g -> ?col_offset:'h -> ?body:'i -> unit -> excepthandler
val comprehension : ?target:expr -> ?iter:expr -> ?is_async:bool -> ?ifs:expr list -> unit -> comprehension
val cmpop_notin : unit -> cmpop
val cmpop_noteq : unit -> cmpop
val cmpop_lte : unit -> cmpop
val cmpop_lt : unit -> cmpop
val cmpop_isnot : unit -> cmpop
val cmpop_is : unit -> cmpop
val cmpop_in : unit -> cmpop
val cmpop_gte : unit -> cmpop
val cmpop_gt : unit -> cmpop
val cmpop_eq : unit -> cmpop
val boolop_or : unit -> boolop
val boolop_and : unit -> boolop
val arguments : ?varargannotation:'a -> ?vararg:arguments_vararg -> ?posonlyargs:arg list -> ?kwonlyargs:arg list -> ?kwargannotation:'b -> ?kwarg:arguments_kwarg -> ?kw_defaults:expr list -> ?defaults:expr list -> ?args:arguments_args -> unit -> arguments
val arg : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?arg:string -> ?annotation:expr option -> unit -> arg
val alias : ?lineno:'a -> ?end_lineno:'b -> ?end_col_offset:'c -> ?col_offset:'d -> ?name:string -> ?asname:string option -> unit -> alias
module Parse (Builder : sig ... end) : sig ... end
module To (Builder : sig ... end) : sig ... end
val parse_ast : Py.Object.t -> Ast.mod_
val parse : ?filename:string -> ?mode:Pyast__.Pyparse.compile_mode -> string -> Ast.mod_
val parse_file : ?mode:Pyast__.Pyparse.compile_mode -> string -> Ast.mod_