Documentation ¶
Index ¶
- func AppendOption(c, a0, a1 interface{}) (val *ast.YTOptions, err error)
- func ArrayType(c, a0 interface{}) (_ *ast.YTFieldType, err error)
- func BasicOrCustomType(c, a0 interface{}) (*ast.YTFieldType, error)
- func FieldArray(c, m, v interface{}) (msg *ast.YTMessage, err error)
- func FieldField(c, m, v interface{}) (msg *ast.YTMessage, err error)
- func FieldMessage(c, m, v interface{}) (msg *ast.YTMessage, err error)
- func FieldOption(c, m, v interface{}) (msg *ast.YTMessage, err error)
- func FileOption(c, a0 interface{}) (_ *ast.YTProgram, err error)
- func MapType(c, a2, a4 interface{}) (_ *ast.YTFieldType, err error)
- func NewEnum(c, en, evs interface{}) (def *ast.YTEnumDef, err error)
- func NewField(c, a0, a1, a3, a4 interface{}) (field *ast.YTField, err error)
- func NewImport(c, pkg, alias interface{}) (imp *ast.YTImport, err error)
- func NewMessage(c, mn, fvs interface{}) (def *ast.YTMessage, err error)
- func NewMethod(c, a0, a2, a4, a5, a6 interface{}) (m *ast.YTMethod, err error)
- func NewPackage(c, v1 interface{}) (pkg *ast.YTPackage, err error)
- func NewProject(c, a1, a3 interface{}) (proj *ast.YTProject, err error)
- func NewProtocol(c, pkg, imports, defines interface{}) (_ *ast.YTProgram, err error)
- func NewService(c, a1, a3 interface{}) (_ *ast.YTService, err error)
- func OptionExpr(c, n, v interface{}) (opt *ast.YTOption, err error)
- func ProjectArea(c, a0, a1 interface{}) (proj *ast.YTProject, err error)
- func ProjectOption(c, a0, a1 interface{}) (proj *ast.YTProject, err error)
- func ServiceFlag(c, a0, a1 interface{}) (_ *ast.YTService, err error)
- func ServiceMethod(c, a0, a1 interface{}) (_ *ast.YTService, err error)
- func ServiceOption(c, a0, a1 interface{}) (_ *ast.YTService, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendOption ¶
Options OptionExpr << bridge.AppendOption($Context, $0, $1) >>
func ArrayType ¶
func ArrayType(c, a0 interface{}) (_ *ast.YTFieldType, err error)
FieldType: "repeated" tok_identifier << bridge.ArrayType($Context, $1) >>
func BasicOrCustomType ¶
func BasicOrCustomType(c, a0 interface{}) (*ast.YTFieldType, error)
FieldType: tok_identifier << bridge.BasicOrCustomType($Context, $0) >>
func FieldArray ¶
Fields "repeated" FieldExpr << bridge.FieldArray($Context, $0, $1) >>
func FieldField ¶
Fields FieldExpr << bridge.FieldField($Context, $0, $1) >>
func FieldMessage ¶
Fields Message << bridge.FieldMessage($Context, $0, $1) >>
func FieldOption ¶
Fields OptionExpr << bridge.FieldOption($Context, $0, $1) >>
func FileOption ¶
OptionExpr << bridge.FileOption($Context, $0) >>
func MapType ¶
func MapType(c, a2, a4 interface{}) (_ *ast.YTFieldType, err error)
FieldType: "map" "<" tok_identifier "," tok_identifier ">" << bridge.MapType($Context, $2, $4) >>
func NewEnum ¶
Enum: "enum" tok_identifier "{" Options "}" OptEnd << bridge.NewEnum($Context, $1, $3) >>
func NewField ¶
FieldExpr: FieldType tok_identifier "=" tok_num FieldOption OptEnd << bridge.NewField($Context,$0, $1, $3, $4) >>
func NewImport ¶
Import: "import" tok_identifier tok_literal OptEnd << bridge.NewImport($Context, $2, $1) >>
func NewMessage ¶
Message: "message" tok_identifier "{" Fields "}" OptEnd << bridge.NewMessage($Context, $1, $3) >>
func NewMethod ¶
ServiceMethod: tok_identifier "(" tok_identifier ")" tok_identifier MethodNo FieldOption OptEnd << bridge.NewMethod($Context, $0, $2, $4, $5, $6) >>
func NewPackage ¶
Package: "package" tok_identifier OptEnd
func NewProject ¶
项目定义 Project:"project" tok_identifier "{" ProjElements "}" OptEnd << bridge.NewProject($Context, $1, $3) >>
func NewProtocol ¶
func NewService ¶
Service: "service" tok_identifier "{" ServiceElements "}" OptEnd << bridge.NewService($Context, $1, $3) >>
func OptionExpr ¶
OptionExpr: tok_identifier OptionValue OptEnd << bridge.OptionExpr($Context, $0, $1) >>
func ProjectArea ¶
ProjElements ProjArea << bridge.ProjectArea($Context, $0, $1) >>
func ProjectOption ¶
ProjElements OptionExpr << bridge.ProjectOption($Context, $0, $1) >>
func ServiceFlag ¶
ServiceElements: ServiceElements MethodFlag << bridge.ServiceFlag($Context, $0, $1) >>
func ServiceMethod ¶
ServiceElements: ServiceElements ServiceMethod << bridge.ServiceMethod($Context, $0, $1) >>
func ServiceOption ¶
ServiceElements: ServiceElements OptionExpr << bridge.ServiceOption($Context, $0, $1) >>
Types ¶
This section is empty.