lexer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDENTIFIER lexType = iota
	KEYWORD
	NUMBER
	HEX
	STRING
	BYTE
	OPERATOR
	EOF
	EOL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Type lexType
	Val  string
	Line int
}

func Lex

func Lex(inputFullSource string) []Item

func (Item) String

func (i Item) String() string

Jump to

Keyboard shortcuts

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