package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.39.4.tar.gz
md5=9aabf597b6de59ced5a3ecfadb1c9a13
sha512=8f4762840b8de0a76a8cbd972e6a4babd7b17e3830b65b5eaff017711bd247f88a29d04d64b6bd31fa3610d5e045bb48ddaaf58b279fcac19a1c53590f0b411e
doc/pfff-lang_c/Ast_c/index.html
Module Ast_c
type tok = Parse_info.t
type 'a wrap = 'a * tok
type name = string wrap
type type_ =
| TBase of name
| TPointer of type_
| TArray of const_expr option * type_
| TFunction of function_type
| TStructName of struct_kind * name
| TEnumName of name
| TTypeName of name
and expr =
| Int of string wrap
| Float of string wrap
| String of string wrap
| Char of string wrap
| Id of name
| Call of expr * argument list
| Assign of Cst_cpp.assignOp wrap * expr * expr
| ArrayAccess of expr * expr
| RecordPtAccess of expr * name
| Cast of type_ * expr
| Postfix of expr * Cst_cpp.fixOp wrap
| Infix of expr * Cst_cpp.fixOp wrap
| Unary of expr * Cst_cpp.unaryOp wrap
| Binary of expr * Cst_cpp.binaryOp wrap * expr
| CondExpr of expr * expr * expr
| Sequence of expr * expr
| SizeOf of (expr, type_) Common.either
| ArrayInit of (expr option * expr) list
| RecordInit of (name * expr) list
| GccConstructor of type_ * expr
| Ellipses of tok
and argument = expr
and const_expr = expr
type stmt =
| ExprSt of expr
| Block of stmt list
| If of expr * stmt * stmt
| Switch of expr * case list
| While of expr * stmt
| DoWhile of stmt * expr
| For of expr option * expr option * expr option * stmt
| Return of expr option
| Continue
| Break
| Label of name * stmt
| Goto of name
| Vars of var_decl list
| Asm of expr list
and initialiser = expr
type enum_def = name * (name * const_expr option) list
type toplevel =
| Include of string wrap
| Define of name * define_body
| Macro of name * name list * define_body
| StructDef of struct_def
| TypeDef of type_def
| EnumDef of enum_def
| FuncDef of func_def
| Global of var_decl
| Prototype of func_def
type program = toplevel list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>