lexer

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package lexer

Performs lexical analysis on the source files and emits tokens.

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

func New

func New(source Source, config config.GenVarsConfig) *Lexer

New returns a Lexer pointer allocation

func (*Lexer) NextToken

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

NextToken advances through the source returning a found token

type Source

type Source struct {
	Input    string
	FileName string
	FullPath string
}

Jump to

Keyboard shortcuts

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