parse

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Start int
	End   int
}

type SyntaxError

type SyntaxError struct {
	Location Location
	Message  string
}

func NewSyntaxError

func NewSyntaxError(t Token, m string) SyntaxError

func (*SyntaxError) FormatError

func (s *SyntaxError) FormatError(input string) string

type Token

type Token struct {
	Type     TokenType
	Lexeme   string
	Location Location
}

type TokenType

type TokenType interface {
	ToString() string
}

Jump to

Keyboard shortcuts

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