lexer

package
v0.0.0-...-83fa01f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package lexer implements the lexical analysis that is used to transform the source code input into a stream of tokens for parsing by the parser.

Index

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
}

Represents the Lexer and contains the source input and internal state

func New

func New(input string) *Lexer

Returns a new Lexer

func (*Lexer) NextToken

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

Returns the next token read from the input stream

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL