Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEOF = errors.New("EOF")
Functions ¶
This section is empty.
Types ¶
type OutputLine ¶
func (*OutputLine) Unparse ¶
func (o *OutputLine) Unparse() string
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
func (*Parser) Parse ¶
func (p *Parser) Parse() (*OutputLine, error)
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner is a lexical scanner implemented with a buffered reader.
func NewScanner ¶
type Token ¶
type Token int
const ( ILLEGAL Token = iota EOF NEWLINE WS // Whitespace IDENT // Identifier, e.g. function name. MEMADDR // Hex address, e.g. 0xcafef00d OPEN_PAREN // ( CLOSE_PAREN // ) OPEN_BRACE // { CLOSE_BRACE // } OPEN_SQ // [ CLOSE_SQ // ] PIPE // | STRING // Delimited by " SEP // , EQUALS // = SIGNAL // --- )
Click to show internal directories.
Click to hide internal directories.