tokenizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LeftBrace    = "LEFT_BRACE"
	RightBrace   = "RIGHT_BRACE"
	LeftBracket  = "LEFT_BRACKET"
	RightBracket = "RIGHT_BRACKET"
	Colon        = "COLON"
	Comma        = "COMMA"
	String       = "STRING"
	Number       = "NUMBER"
	Boolean      = "BOOLEAN"
	Null         = "NULL"
	EOF          = "EOF"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type  string
	Value string
}

func TokenizeJSON added in v0.1.0

func TokenizeJSON(fileData []byte) ([]Token, error)

Jump to

Keyboard shortcuts

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