parse

package
v0.0.0-...-5fd6bba Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader) ([]ast.Stmnt, error)

Types

type Token

type Token struct {
	Val          string
	Type         TokenType
	Line, Column int
}

type TokenType

type TokenType int
const (
	LexError TokenType = iota - 1
	String
	RawString
	Int
	Float
	Ident

	SpecialChar // This is a separator => if Token.Type > SpecialChar && Token.Type < Keyword {...}
	Semicolon
	Period
	Equal
	LParen
	RParen
	LBracket
	RBracket
	LBrace
	RBrace
	Plus
	Hyphen
	Asterisk
	Greater
	Less

	Keyword // This is a separator => if Token.Type > Keyword {...}
	Select
	Delete
	Create
	Update
	Insert
	From
	Into
	Table
	Set
	Values
	Where
	If
	Exists
	Not
	And
	Or
)

Jump to

Keyboard shortcuts

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