Skip to main content

Module ast_types

Module ast_types 

Source
Expand description

AST type definitions for parsed C code.

This module contains all the data types used to represent a parsed C program: statements, expressions, types, operators, functions, structs, enums, typedefs, variables, and macros.

Structs§

Ast
Abstract Syntax Tree representing parsed C code.
Class
Represents a C++ class (DECY-200).
Enum
Represents a C enum definition.
EnumVariant
Represents an enum variant (constant) in C.
Function
Represents a C function.
MacroDefinition
Represents a C macro definition (#define).
Method
A C++ class method with its access level (DECY-200).
Namespace
Represents a C++ namespace (DECY-201).
Parameter
Represents a function parameter.
Struct
Represents a struct definition.
StructField
Represents a struct field.
SwitchCase
Represents a single case in a switch statement.
Typedef
Represents a C typedef declaration.
Variable
Represents a variable declaration.

Enums§

AccessSpecifier
C++ access specifier (DECY-200).
BinaryOperator
Binary operators for C expressions.
CudaQualifier
CUDA function qualifier (DECY-199).
CxxOperatorKind
C++ overloaded operator kind (DECY-208).
Expression
Represents a C expression.
Statement
Represents a C statement.
Type
Represents a C type.
UnaryOperator
Unary operators for C expressions.