package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.39.5.tar.gz
md5=e23dbd320a8681b74315162a02bf97a7
sha512=2998432bcd6d9a459331d733c4446d35459d42787fcf2fd332d3ec5131a4d358bb8f060b45d38696bcd584e1eaa8c1b21b82d7d3005e83c1ecefd22fec842ee7
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)"
>