Documentation ¶
Index ¶
- type Binary
- type BinaryOp
- type BlockItem
- type Bool
- type BuiltinType
- type BuiltinTypeSpecifier
- type Call
- type Char
- type Complex
- type CompoundStatement
- type Constant
- type Declaration
- type DeclarationSpecifier
- type DeclarationSpecifiers
- type Declarator
- type DeclaratorsDeclaration
- type Double
- type Expression
- type ExpressionStatement
- type Float
- type FunctionDeclaration
- type Identifier
- type IdentifierDeclarator
- type InitDeclarator
- type Int
- type JumpStatement
- type Long
- type M128
- type M128d
- type M128i
- type Node
- type OptDeclarator
- type ParameterDeclaration
- type ParameterList
- type ParameterListDeclarator
- type Pointer
- type PointerDeclarator
- type PointerLevel
- type ReturnStatement
- type Short
- type Signed
- type SpecifierQualifier
- type Statement
- type StorageClassSpecifier
- type StringLiteral
- type StructDeclaration
- type StructDeclarator
- type StructOrUnionSpecifier
- type TranslationUnit
- type TypeQualifier
- type TypeQualifierList
- type TypeSpecifier
- type TypedefTypeSpecifier
- type Unsigned
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct { Op BinaryOp L Expression R Expression // contains filtered or unexported fields }
type BuiltinType ¶
type BuiltinType interface { Name() string // contains filtered or unexported methods }
func ParseBuiltinType ¶
func ParseBuiltinType(s string) BuiltinType
type BuiltinTypeSpecifier ¶
type BuiltinTypeSpecifier struct { T BuiltinType // contains filtered or unexported fields }
type Call ¶
type Call struct { Fn Expression Args []Expression // contains filtered or unexported fields }
type CompoundStatement ¶
type CompoundStatement struct { S []BlockItem // contains filtered or unexported fields }
type Declaration ¶
type Declaration interface { Node // contains filtered or unexported methods }
type DeclarationSpecifier ¶
type DeclarationSpecifier interface {
// contains filtered or unexported methods
}
type DeclarationSpecifiers ¶
type DeclarationSpecifiers struct { S []DeclarationSpecifier // contains filtered or unexported fields }
type Declarator ¶
type Declarator interface { Node // contains filtered or unexported methods }
type DeclaratorsDeclaration ¶
type DeclaratorsDeclaration struct { S DeclarationSpecifiers Ds []Declarator // contains filtered or unexported fields }
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
type ExpressionStatement ¶
type ExpressionStatement struct { Expression Expression // contains filtered or unexported fields }
type FunctionDeclaration ¶
type FunctionDeclaration struct { Ds DeclarationSpecifiers D Declarator // FIXME: Dl DeclarationList B CompoundStatement // contains filtered or unexported fields }
type Identifier ¶
type Identifier struct { S string // contains filtered or unexported fields }
type IdentifierDeclarator ¶
type IdentifierDeclarator struct { I Identifier // contains filtered or unexported fields }
type InitDeclarator ¶
type InitDeclarator struct { D Declarator I Expression // contains filtered or unexported fields }
type JumpStatement ¶
type JumpStatement interface { Statement // contains filtered or unexported methods }
type OptDeclarator ¶
type OptDeclarator = bt.Optional[Declarator]
type ParameterDeclaration ¶
type ParameterDeclaration struct { S DeclarationSpecifiers D OptDeclarator // contains filtered or unexported fields }
type ParameterList ¶
type ParameterList struct { Ps []ParameterDeclaration Va bool // contains filtered or unexported fields }
type ParameterListDeclarator ¶
type ParameterListDeclarator struct { D Declarator Ps ParameterList // contains filtered or unexported fields }
type Pointer ¶
type Pointer struct { S []PointerLevel // contains filtered or unexported fields }
type PointerDeclarator ¶
type PointerDeclarator struct { P Pointer D OptDeclarator // contains filtered or unexported fields }
type PointerLevel ¶
type PointerLevel struct { Q *TypeQualifierList Ca bool }
type ReturnStatement ¶
type ReturnStatement struct { V Expression // contains filtered or unexported fields }
type SpecifierQualifier ¶
type SpecifierQualifier struct { Ts TypeSpecifier Tq TypeQualifier }
type StorageClassSpecifier ¶
type StorageClassSpecifier int8
const ( DefaultStorage StorageClassSpecifier = iota TypedefStorage ExternStorage StaticStorage ThreadLocalStorage AutoStorage RegisterStorage )
func ParseStorageClassSpecifier ¶
func ParseStorageClassSpecifier(s string) StorageClassSpecifier
func (StorageClassSpecifier) String ¶
func (s StorageClassSpecifier) String() string
type StringLiteral ¶
type StringLiteral struct { S []string // contains filtered or unexported fields }
type StructDeclaration ¶
type StructDeclaration struct { Sqs []SpecifierQualifier Sds []StructDeclarator // contains filtered or unexported fields }
type StructDeclarator ¶
type StructDeclarator struct { D Declarator // contains filtered or unexported fields }
type StructOrUnionSpecifier ¶
type StructOrUnionSpecifier struct { U bool I string Ds []StructDeclaration // contains filtered or unexported fields }
type TranslationUnit ¶
type TranslationUnit struct { Ds []Declaration // contains filtered or unexported fields }
type TypeQualifier ¶
type TypeQualifier int8
const ( DefaultType TypeQualifier = iota ConstType RestrictType VolatileType AtomicType )
func ParseTypeQualifier ¶
func ParseTypeQualifier(s string) TypeQualifier
func (TypeQualifier) String ¶
func (q TypeQualifier) String() string
type TypeQualifierList ¶
type TypeQualifierList struct { S []TypeQualifier // contains filtered or unexported fields }
type TypeSpecifier ¶
type TypeSpecifier interface { DeclarationSpecifier // contains filtered or unexported methods }
type TypedefTypeSpecifier ¶
type TypedefTypeSpecifier struct { I Identifier // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.