Documentation ¶ Index ¶ type Lexer func NewLexer(input string) *Lexer func (l *Lexer) NextToken() token.Token Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Lexer ¶ type Lexer struct { // contains filtered or unexported fields } Lexer is used for lexing the input, which results in producing tokens that will later be consumed by the parser (console / interactive mode / repl / shell) func NewLexer ¶ func NewLexer(input string) *Lexer NewLexer initializes a new lexer type func (*Lexer) NextToken ¶ func (l *Lexer) NextToken() token.Token NextToken goes through the input string and extracts the tokens from it Source Files ¶ View all Source files lexer.go Click to show internal directories. Click to hide internal directories.