lexer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package lexer is converting a sequence of characters (stdin or input file) into a sequence of lexical tokens, which are later interpreted by 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
}

Lexer - Represent the text input (commands) provided by client before tokenization

func RunLexer

func RunLexer(input string) *Lexer

RunLexer - Start lexer by moving to the first position

func (*Lexer) NextToken

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

NextToken - Return the next token structure which is appearing after current position.

Jump to

Keyboard shortcuts

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