Documentation
¶
Overview ¶
generated by goGen.go - do not edit
generated by goGen.go - do not edit
generated by goGen.go - do not edit
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharIterator ¶
type CharIterator interface {
CurrentIndex() int
NextChar() rune
Peek() rune
SetIndex(i int)
SubString(l int, r int) []rune
Loc(idx int) struct {
Line int
Col int
}
}
character reader
type CharStream ¶
type CharStream struct {
// contains filtered or unexported fields
}
Character reader implement
func NewStream ¶
func NewStream(input string) *CharStream
func (*CharStream) CurrentIndex ¶
func (cs *CharStream) CurrentIndex() int
func (*CharStream) NextChar ¶
func (cs *CharStream) NextChar() rune
func (*CharStream) Peek ¶
func (cs *CharStream) Peek() rune
func (*CharStream) SetIndex ¶
func (cs *CharStream) SetIndex(i int)
type Lexer ¶
type Lexer struct {
Chars CharIterator
// contains filtered or unexported fields
}
Lexer
func NewLexer ¶
func NewLexer(chars CharIterator) *Lexer
type Token ¶
type Token struct {
Type TokenType
Token TokenValue
}
type TokenValue ¶
type TokenValue string
Click to show internal directories.
Click to hide internal directories.