Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brace ¶
type Brace struct {
// contains filtered or unexported fields
}
func (*Brace) MarshalJSON ¶
type Colon ¶
type Colon struct {
// contains filtered or unexported fields
}
func (*Colon) MarshalJSON ¶
type Const ¶
type Const struct {
Keyword *Keyword `json:"keyword"`
Type *Ident `json:"type"`
Name *Ident `json:"name"`
Equal *Equal `json:"equal"`
Value Value `json:"value"`
}
func (*Const) MarshalJSON ¶
type Equal ¶
type Equal struct {
// contains filtered or unexported fields
}
func (*Equal) MarshalJSON ¶
type Expression ¶
type Field ¶
type Field struct {
ID *Int `json:"id"`
Colon *Colon `json:"colon"`
Req *Req `json:"req"`
Type *Ident `json:"type"`
Name *Ident `json:"name"`
Equal *Equal `json:"equal"`
DefaultValue Value `json:"default_value"`
}
func (*Field) MarshalJSON ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func (*Float) MarshalJSON ¶
type Ident ¶
type Ident struct {
// contains filtered or unexported fields
}
func (*Ident) MarshalJSON ¶
type Include ¶
type Include struct {
Keyword *Keyword `json:"keyword"`
Name *Ident `json:"name"`
Path *String `json:"path"`
}
func NewInclude ¶
func (*Include) MarshalJSON ¶
type Keyword ¶
func NewKeyword ¶
type Namespace ¶
type Namespace struct {
Keyword *Keyword `json:"keyword"`
Scope *Ident `json:"scope"`
Name *Ident `json:"name"`
}
func NewNamespace ¶
func (*Namespace) MarshalJSON ¶
type Pos ¶
func (*Pos) MarshalJSON ¶
type Program ¶
type Program struct {
Expressions []Expression `json:"expressions"`
}
func (*Program) MarshalJSON ¶
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
func NewOptional ¶
func NewRequired ¶
func (*Req) MarshalJSON ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (*String) MarshalJSON ¶
type Struct ¶
type Struct struct {
Keyword *Keyword `json:"keyword"`
Name *Ident `json:"name"`
LBrace *Brace `json:"lbrace"`
Fields []*Field `json:"fields"`
RBrace *Brace `json:"rbrace"`
}
func (*Struct) MarshalJSON ¶
type Token ¶
type Token interface {
Expression
Name() string
}
type Typedef ¶
type Typedef struct {
Keyword *Keyword `json:"keyword"`
DefinitionType *Ident `json:"definition_type"`
Identifier *Ident `json:"identifier"`
}
func NewTypedef ¶
func (*Typedef) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.