Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CHeaderFileAST ¶
type CHeaderFileAST struct {
Expr []Expr `parser:" @@* "`
}
func ParseCString ¶
func ParseCString(s string) (CHeaderFileAST, error)
func (CHeaderFileAST) CollectAliases ¶
func (a CHeaderFileAST) CollectAliases() []TypedefAlias
func (CHeaderFileAST) CollectEnums ¶
func (a CHeaderFileAST) CollectEnums() []TypedefEnum
func (CHeaderFileAST) CollectFunctions ¶
func (a CHeaderFileAST) CollectFunctions() []TypedefFunction
func (CHeaderFileAST) CollectStructs ¶
func (a CHeaderFileAST) CollectStructs() []TypedefStruct
type Expr ¶
type Expr struct { Comment string `parser:" @Comment "` Enum *TypedefEnum `parser:" | @@ ';' "` Alias *TypedefAlias `parser:" | @@ ';' "` Function *TypedefFunction `parser:" | @@ ';' "` Struct *TypedefStruct `parser:" | @@ ';' "` }
type StructField ¶
type StructField struct { Variable *StructVariable `parser:" ( @@ "` Function *StructFunction `parser:" | @@ ) ';' "` }
type StructFunction ¶
type StructVariable ¶
type Type ¶
type TypedefAlias ¶
type TypedefEnum ¶
type TypedefFunction ¶
type TypedefStruct ¶
type TypedefStruct struct { Fields []StructField `parser:" 'typedef' 'struct' '{' @@* '}' "` Name string `parser:" @Ident "` }
func (TypedefStruct) CollectFunctions ¶
func (t TypedefStruct) CollectFunctions() []StructFunction
Click to show internal directories.
Click to hide internal directories.