lexical

package
v0.0.0-...-7470c7a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type  TokenType
	Value string
}

func Scan

func Scan(sourceCode string) []Token

type TokenType

type TokenType int
const (
	KEYWORD TokenType = iota
	ID
	NUMBER
	SYMBOL
	STRING
	CHARACTER
	EOF
)

Jump to

Keyboard shortcuts

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