Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TokMap = token.NewTokenMap( []string{ "INVALID", "␚", "empty", ";", "syntax", "=", "tok_literal", "package", "tok_identifier", "import", "enum", "{", "}", "tok_num", "option", "message", "map", "<", ",", ">", "repeated", "service", "rpc", "(", ")", "returns", "tok_doc", }, map[string]token.Type{ "INVALID": 0, "␚": 1, "empty": 2, ";": 3, "syntax": 4, "=": 5, "tok_literal": 6, "package": 7, "tok_identifier": 8, "import": 9, "enum": 10, "{": 11, "}": 12, "tok_num": 13, "option": 14, "message": 15, "map": 16, "<": 17, ",": 18, ">": 19, "repeated": 20, "service": 21, "rpc": 22, "(": 23, ")": 24, "returns": 25, "tok_doc": 26, }, )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface{}
Parser-specific user-defined and entirely-optional context, accessible as '$Context' in SDT actions.
type Parser ¶
type Parser struct { Context Context // contains filtered or unexported fields }
type ProdTab ¶
type ProdTab [numProductions]ProdTabEntry
type ProdTabEntry ¶
Click to show internal directories.
Click to hide internal directories.