Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OneOfTypes ¶
Types ¶
type EmitterFunc ¶
type EmitterFunc func(token *Token)
func (EmitterFunc) Emit ¶
func (fn EmitterFunc) Emit(token *Token)
type EmitterIterator ¶
type EmitterIterator struct {
// contains filtered or unexported fields
}
func NewEmitterIterator ¶
func NewEmitterIterator() *EmitterIterator
func (*EmitterIterator) Emit ¶
func (e *EmitterIterator) Emit(token *Token)
func (*EmitterIterator) NextToken ¶
func (e *EmitterIterator) NextToken() *Token
type Type ¶
type Type int
const ( Error Type = -1 // Error token type which indicates error EOF Type = iota // EOF token type which indicates end of input Identifier // identifier Const // const Enum // enum Model // model Http // http Rpc // rpc Service // service Byte // byte Bool // bool Int8 // int8 Int16 // int16 Int32 // int32 Int64 // int64 Uint8 // uint8 Uint16 // uint16 Uint32 // uint32 Uint64 // uint64 Float32 // float32 Float64 // float64 Timestamp // timestamp String // string Map // map Array // array [] Any // any File // file Stream // stream ConstDuration // 1ns, 1us, 1ms, 1s, 1m, 1h ConstBytes // 1b, 1kb, 1mb, 1gb, 1tb, 1pb, 1eb ConstFloat // 1.0 ConstInt // 1 ConstStringSingleQuote // 'string' ConstStringDoubleQuote // "string" ConstStringBacktickQoute // `string` ConstBool // true, false ConstNull // null Return // => Assign // = Colon // : Comma // , Extend // ... OpenCurly // { CloseCurly // } OpenParen // ( CloseParen // ) OpenAngle // < CloseAngle // > RightComment // # TopComment // # CustomError // error )
Click to show internal directories.
Click to hide internal directories.