lexer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path    string
	Content []byte
}

type Files

type Files []File

type Lexer

type Lexer struct {
	Files Files

	Items token.Items
	// contains filtered or unexported fields
}

func New

func New(fl Files) *Lexer

func NewCode

func NewCode(fl, code string) *Lexer

func NewTest

func NewTest(code string) *Lexer

func (*Lexer) Errors

func (l *Lexer) Errors() diagnostics.Diagnostics

func (*Lexer) HasError

func (l *Lexer) HasError() bool

func (*Lexer) Lex

func (l *Lexer) Lex()

func (*Lexer) Print

func (l *Lexer) Print()

func (*Lexer) Run

func (l *Lexer) Run()

Jump to

Keyboard shortcuts

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