c

package
v0.0.0-...-27647ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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 BinaryOp

type BinaryOp int8
const (
	InvalidBinaryOp BinaryOp = iota

	AddOp
	SubOp
	MulOp
	DivOp
	ModOp

	LtOp
	LteOp
	EqOp
	NeOp
	GtOp
	GteOp

	BitAndOp
	BitOrOp
	BitXorOp

	AndOp
	OrOp
)

func (BinaryOp) String

func (o BinaryOp) String() string

type BlockItem

type BlockItem interface {
	// contains filtered or unexported methods
}

type Bool

type Bool struct {
	// contains filtered or unexported fields
}

func (Bool) Name

func (t Bool) Name() string

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 Char

type Char struct {
	// contains filtered or unexported fields
}

func (Char) Name

func (t Char) Name() string

type Complex

type Complex struct {
	// contains filtered or unexported fields
}

func (Complex) Name

func (t Complex) Name() string

type CompoundStatement

type CompoundStatement struct {
	S []BlockItem
	// contains filtered or unexported fields
}

type Constant

type Constant struct {
	S string
	// 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 Double

type Double struct {
	// contains filtered or unexported fields
}

func (Double) Name

func (t Double) Name() string

type Expression

type Expression interface {
	Node
	// contains filtered or unexported methods
}

type ExpressionStatement

type ExpressionStatement struct {
	Expression Expression
	// contains filtered or unexported fields
}

type Float

type Float struct {
	// contains filtered or unexported fields
}

func (Float) Name

func (t Float) Name() string

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 Int

type Int struct {
	// contains filtered or unexported fields
}

func (Int) Name

func (t Int) Name() string

type JumpStatement

type JumpStatement interface {
	Statement
	// contains filtered or unexported methods
}

type Long

type Long struct {
	// contains filtered or unexported fields
}

func (Long) Name

func (t Long) Name() string

type M128

type M128 struct {
	// contains filtered or unexported fields
}

func (M128) Name

func (t M128) Name() string

type M128d

type M128d struct {
	// contains filtered or unexported fields
}

func (M128d) Name

func (t M128d) Name() string

type M128i

type M128i struct {
	// contains filtered or unexported fields
}

func (M128i) Name

func (t M128i) Name() string

type Node

type Node interface {
	// 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 Short

type Short struct {
	// contains filtered or unexported fields
}

func (Short) Name

func (t Short) Name() string

type Signed

type Signed struct {
	// contains filtered or unexported fields
}

func (Signed) Name

func (t Signed) Name() string

type SpecifierQualifier

type SpecifierQualifier struct {
	Ts TypeSpecifier
	Tq TypeQualifier
}

type Statement

type Statement interface {
	Node
	BlockItem
	// contains filtered or unexported methods
}

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
}

type Unsigned

type Unsigned struct {
	// contains filtered or unexported fields
}

func (Unsigned) Name

func (t Unsigned) Name() string

type Void

type Void struct {
	// contains filtered or unexported fields
}

func (Void) Name

func (t Void) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL