monkey-lang: github.com/prologic/monkey-lang/lexer Index | Files

package lexer

import "github.com/prologic/monkey-lang/lexer"

Index

Package Files

lexer.go

type Lexer Uses

type Lexer struct {
    // contains filtered or unexported fields
}

Lexer represents the lexer and contains the source input and internal state

func New Uses

func New(input string) *Lexer

New returns a new Lexer

func (*Lexer) NextToken Uses

func (l *Lexer) NextToken() token.Token

NextToken returns the next token read from the input stream

Package lexer imports 3 packages (graph) and is imported by 5 packages. Updated 2019-03-06. Refresh now. Tools for package owners.