lexer

package
v0.0.0-...-df39981 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBinary

func IsBinary(b byte) bool

func IsDecimal

func IsDecimal(b byte) bool

func IsHex

func IsHex(b byte) bool

func IsIdentifierRune

func IsIdentifierRune(s string) bool

func IsOctal

func IsOctal(b byte) bool

Types

type Lex

type Lex struct {
	File   *jnio.File
	Pos    int
	Column int
	Row    int
	Logs   []jnlog.CompilerLog
	// contains filtered or unexported fields
}

func NewLex

func NewLex(f *jnio.File) *Lex

func (*Lex) Lex

func (l *Lex) Lex() []Token

func (*Lex) Newln

func (l *Lex) Newln()

func (*Lex) Token

func (l *Lex) Token() Token

type Token

type Token struct {
	File   *jnio.File
	Row    int
	Column int
	Kind   string
	Id     uint8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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