lexer

package
v0.0.0-...-acc6289 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package lexer contains our lexer.

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
}

Lexer is used as a lexer for our VM

func New

func New(input string) *Lexer

New a Lexer instance from string input.

func (*Lexer) NextToken

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

NextToken to read next token, skipping the white space.

Jump to

Keyboard shortcuts

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