package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.37.7.tar.gz
md5=d069f379342be72574b4cdc52f4ed9b4
sha512=68e9971364f5e016bad8f94bb72fd15252f19c7964424992309cdb4a9fc922dbe15d07619f500f4bcbc72f820c93d4da20f0759bb4276cd073a29a179bef9300
doc/pfff-lang_ml/Ast_ml/index.html
Module Ast_ml
type tok = Parse_info.info
and 'a wrap = 'a * tok
and 'a comma_list = ('a, tok) Common.either list
and 'a and_list = ('a, tok) Common.either list
and 'a star_list = ('a, tok) Common.either list
and 'a pipe_list = ('a, tok) Common.either list
and 'a semicolon_list = ('a, tok) Common.either list
and lname = name
and uname = name
and expr =
| C of constant
| L of long_name
| Constr of long_name * expr option
| Tuple of expr comma_list
| List of expr semicolon_list bracket
| Sequence of seq_expr paren
| Prefix of string wrap * expr
| Infix of expr * string wrap * expr
| FunCallSimple of long_name * argument list
| FunCall of expr * argument list
| RefAccess of tok * expr
| RefAssign of expr * tok * expr
| FieldAccess of expr * tok * long_name
| FieldAssign of expr * tok * long_name * tok * expr
| Record of record_expr brace
| New of tok * long_name
| ObjAccess of expr * tok * name
| LetIn of tok * rec_opt * let_binding and_list * tok * seq_expr
| Fun of tok * parameter list * match_action
| Function of tok * match_case pipe_list
| If of tok * seq_expr * tok * expr * (tok * expr) option
| Match of tok * seq_expr * tok * match_case pipe_list
| Try of tok * seq_expr * tok * match_case pipe_list
| While of tok * seq_expr * tok * seq_expr * tok
| For of tok * name * tok * seq_expr * for_direction * seq_expr * tok * seq_expr * tok
| ParenExpr of expr paren
| ExprTodo
and seq_expr = expr semicolon_list
and record_expr =
| RecordNormal of field_and_expr semicolon_list
| RecordWith of expr * tok * field_and_expr semicolon_list
and match_case = pattern * match_action
and rec_opt = tok option
and pattern =
| PatVar of name
| PatConstant of pattern_signed_constant
| PatConstr of long_name * pattern option
| PatConsInfix of pattern * tok * pattern
| PatTuple of pattern comma_list
| PatList of pattern semicolon_list bracket
| PatUnderscore of tok
| PatRecord of field_pattern semicolon_list brace
| PatAs of pattern * tok * name
| PatDisj of pattern * tok * pattern
| PatTyped of tok * pattern * tok * ty * tok
| ParenPat of pattern paren
| PatTodo
and ty_params =
| TyNoParam
| TyParam1 of ty_parameter
| TyParamMulti of ty_parameter comma_list paren
and type_def_kind =
| TyCore of ty
| TyAlgebric of constructor_declaration pipe_list
| TyRecord of field_declaration semicolon_list brace
and constructor_declaration = name * constructor_arguments
and item =
| Type of tok * type_declaration and_list
| Exception of tok * name * constructor_arguments
| External of tok * name * tok * ty * tok * string wrap list
| Open of tok * long_name
| Val of tok * name * tok * ty
| Let of tok * rec_opt * let_binding and_list
| Module of tok * uname * tok * module_expr
| ItemTodo of tok
type sig_item = item
type struct_item = item
type program = toplevel list
type any =
| Ty of ty
| Expr of expr
| Pattern of pattern
| Item of item
| Toplevel of toplevel
| Program of program
| TypeDeclaration of type_declaration
| TypeDefKind of type_def_kind
| FieldDeclaration of field_declaration
| MatchCase of match_case
| LetBinding of let_binding
| Constant of constant
| Argument of argument
| Body of seq_expr
| Info of tok
| InfoList of tok list
val str_of_name : name -> string
val uncomma : ('a, 'b) Common.either list -> 'a list
val unpipe : ('a, 'b) Common.either list -> 'a list
val module_of_long_name : ((name * 'a) list * 'b) -> string
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>