Versions in this module Expand all Collapse all v1 v1.5.4 Aug 10, 2023 Changes in this version + var Names = map[Type]string + func ReadablePosition(pos int, input string) (int, int) + type Lexer struct + Col int + Config *config.Config + Input string + Line int + Pos int + RawStatements rawStmt + Start int + Tokens chan *Token + Width int + func NewLexer(input string) *Lexer + func (l *Lexer) Current() string + func (l *Lexer) Position() *Position + func (l *Lexer) Run() + type Pos interface + Pos func() int + type Position struct + Column int + Filename string + Line int + Offset int + func (pos *Position) IsValid() bool + func (pos *Position) Pos() int + func (pos Position) String() string + type Stream struct + func Lex(input string) *Stream + func NewStream(input interface{}) *Stream + func (s *Stream) Backup() + func (s *Stream) Current() *Token + func (s *Stream) EOF() bool + func (s *Stream) End() bool + func (s *Stream) IsError() bool + func (s *Stream) Next() *Token + func (s *Stream) Peek() *Token + type Token struct + Col int + Line int + Pos int + Trim bool + Type Type + Val string + func (t Token) String() string + type TokenIterator interface + Next func() *Token + func ChanIterator(input chan *Token) TokenIterator + func SliceIterator(input []*Token) TokenIterator + type Type int + const Add + const And + const Assign + const BlockBegin + const BlockEnd + const Colon + const Comma + const Comment + const CommentBegin + const CommentEnd + const Data + const Div + const Dot + const EOF + const Eq + const Error + const Float + const Floordiv + const Gt + const Gteq + const In + const Initial + const Integer + const Is + const Lbrace + const Lbracket + const Linecomment + const LinecommentBegin + const LinecommentEnd + const LinestatementBegin + const LinestatementEnd + const Lparen + const Lt + const Lteq + const Mod + const Mul + const Name + const Ne + const Not + const Operator + const Or + const Pipe + const Pow + const RawBegin + const RawEnd + const Rbrace + const Rbracket + const Rparen + const Semicolon + const String + const Sub + const Tilde + const VariableBegin + const VariableEnd + const Whitespace