Documentation ¶
Index ¶
Constants ¶
View Source
const (
CodeSyntaxErr terror.ErrCode = 1
)
Error codes.
Variables ¶
View Source
var (
ErrSyntax = terror.ClassParser.New(CodeSyntaxErr, "syntax error")
)
Error instances.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser instance. Some temporary objects are stored in it to reduce object allocation during Parse function.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner implements the yyLexer interface.
func (*Scanner) Errorf ¶
Errorf tells scanner something is wrong. Scanner satisfies yyLexer interface which need this function.
Click to show internal directories.
Click to hide internal directories.