package pyast

  1. Overview
  2. Docs
type alias
type arg
type arguments
type boolop
type cmpop
type comprehension
type excepthandler
type expr
type expr_context
type keyword
type match_case
type mod_
type operator
type pattern
type slice
type stmt
type type_ignore
type unaryop
type withitem
val alias : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?name:string -> ?asname:string option -> unit -> alias
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
type arguments_args =
  1. | Expr_list of expr list
  2. | Arg_list of arg list
type arguments_kwarg =
  1. | Identifier_opt of string option
  2. | Arg_opt of arg option
type arguments_vararg =
  1. | Identifier_opt of string option
  2. | Arg_opt of arg option
val arguments : ?varargannotation:expr option -> ?vararg:arguments_vararg -> ?posonlyargs:arg list -> ?kwonlyargs:arg list -> ?kwargannotation:expr option -> ?kwarg:arguments_kwarg -> ?kw_defaults:expr list -> ?defaults:expr list -> ?args:arguments_args -> unit -> arguments
val boolop_and : unit -> boolop
val boolop_or : unit -> boolop
val cmpop_eq : unit -> cmpop
val cmpop_gt : unit -> cmpop
val cmpop_gte : unit -> cmpop
val cmpop_in : unit -> cmpop
val cmpop_is : unit -> cmpop
val cmpop_isnot : unit -> cmpop
val cmpop_lt : unit -> cmpop
val cmpop_lte : unit -> cmpop
val cmpop_noteq : unit -> cmpop
val cmpop_notin : unit -> cmpop
val comprehension : ?target:expr -> ?iter:expr -> ?is_async:bool -> ?ifs:expr list -> unit -> comprehension
val excepthandler : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_:expr option -> ?name:expr option -> ?lineno:int -> ?col_offset:int -> ?body:stmt list -> unit -> excepthandler
type excepthandler_excepthandler_name =
  1. | Identifier_opt of string option
  2. | Expr_opt of expr option
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 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 expr_await : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> 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_boolop : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> ?op:boolop -> unit -> expr
type expr_bytes_s =
  1. | String of string
  2. | Bytes of string
val expr_bytes : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?s:expr_bytes_s -> unit -> expr
val expr_call : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?starargs:expr option -> ?kwargs:expr option -> ?keywords:keyword list -> ?func:expr -> ?args:expr list -> 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_constant : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:Pyast__.Common.constant_desc option -> ?kind:string option -> 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_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_ellipsis : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> 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:int option -> 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_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_joinedstr : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> 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_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_listcomp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?generators:comprehension list -> ?elt:expr -> 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_nameconstant : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:bool option -> 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_num : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?n:Pyast__.Common.num -> unit -> expr
val expr_repr : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value: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_setcomp : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?generators:comprehension list -> ?elt:expr -> unit -> expr
val expr_slice : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?upper:expr option -> ?step:expr option -> ?lower:expr option -> 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_str : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?s:string -> unit -> expr
type expr_subscript_slice =
  1. | Slice of slice
  2. | Expr of 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_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_unaryop : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?operand:expr -> ?op:unaryop -> unit -> expr
val expr_yield : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr option -> unit -> expr
type expr_yieldfrom_value =
  1. | Expr_opt of expr option
  2. | Expr of expr
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_context_augload : unit -> expr_context
val expr_context_augstore : unit -> expr_context
val expr_context_del : unit -> expr_context
val expr_context_load : unit -> expr_context
val expr_context_param : unit -> expr_context
val expr_context_store : unit -> expr_context
type keyword_arg =
  1. | Identifier_opt of string option
  2. | Identifier of string
val keyword : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?value:expr -> ?arg:keyword_arg -> unit -> keyword
val match_case : ?pattern:pattern -> ?guard:expr option -> ?body:stmt list -> unit -> match_case
val mod_expression : ?body:expr -> unit -> mod_
val mod_functiontype : ?returns:expr -> ?argtypes:expr list -> unit -> mod_
val mod_interactive : ?body:stmt list -> unit -> mod_
val mod_module : ?type_ignores:type_ignore list -> ?body:stmt list -> unit -> mod_
val mod_suite : ?body:stmt list -> unit -> mod_
val operator_add : unit -> operator
val operator_bitand : unit -> operator
val operator_bitor : unit -> operator
val operator_bitxor : unit -> operator
val operator_div : unit -> operator
val operator_floordiv : unit -> operator
val operator_lshift : unit -> operator
val operator_matmult : unit -> operator
val operator_mod : unit -> operator
val operator_mult : unit -> operator
val operator_pow : unit -> operator
val operator_rshift : unit -> operator
val operator_sub : unit -> operator
val pattern_matchas : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?pattern:pattern option -> ?name:string option -> unit -> pattern
val pattern_matchclass : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?patterns:pattern list -> ?kwd_patterns:pattern list -> ?kwd_attrs:string list -> ?cls:expr -> unit -> pattern
val pattern_matchmapping : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?rest:string option -> ?patterns:pattern list -> ?keys:expr list -> unit -> pattern
val pattern_matchor : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?patterns:pattern list -> unit -> pattern
val pattern_matchsequence : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?patterns:pattern list -> unit -> pattern
val pattern_matchsingleton : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?value:Pyast__.Common.constant_desc option -> unit -> pattern
val pattern_matchstar : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?name:string option -> unit -> pattern
val pattern_matchvalue : ?lineno:int -> ?end_lineno:int -> ?end_col_offset:int -> ?col_offset:int -> ?value:expr -> unit -> pattern
val slice_ellipsis : unit -> slice
val slice_extslice : ?dims:slice list -> unit -> slice
val slice_index : ?value:expr -> unit -> slice
val slice_slice : ?upper:expr option -> ?step:expr option -> ?lower:expr option -> unit -> slice
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 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_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_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_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_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_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_break : ?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:expr option -> ?name:string -> ?kwargs:expr option -> ?keywords:keyword list -> ?decorator_list:expr list -> ?body:stmt list -> ?bases: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_delete : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?targets:expr list -> unit -> stmt
val stmt_exec : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?locals:expr option -> ?globals:expr option -> ?body:expr -> 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_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_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:expr list -> ?decorator_list:expr list -> ?body:stmt list -> ?args:arguments -> 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_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_import : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?names:alias list -> unit -> stmt
type stmt_importfrom_module =
  1. | Identifier_opt of string option
  2. | Identifier of string
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_match : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?subject:expr -> ?cases:match_case list -> 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_pass : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> unit -> stmt
val stmt_print : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?values:expr list -> ?nl:bool -> ?dest:expr option -> unit -> stmt
val stmt_raise : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_:expr option -> ?tback:expr option -> ?inst:expr option -> ?exc:expr option -> ?cause:expr option -> 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_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_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_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_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_with : ?lineno:int -> ?end_lineno:int option -> ?end_col_offset:int option -> ?col_offset:int -> ?type_comment:string option -> ?optional_vars:expr option -> ?items:withitem list -> ?context_expr:expr -> ?body:stmt list -> unit -> stmt
val type_ignore_typeignore : ?tag:string -> ?lineno:int -> unit -> type_ignore
val unaryop_invert : unit -> unaryop
val unaryop_not : unit -> unaryop
val unaryop_uadd : unit -> unaryop
val unaryop_usub : unit -> unaryop
val withitem : ?optional_vars:expr option -> ?context_expr:expr -> unit -> withitem
OCaml

Innovation. Community. Security.