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