parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrExpectedSomething

func ErrExpectedSomething(expected interface{}) error

func ErrUnexpectedEof

func ErrUnexpectedEof(expected interface{}) error

func ErrUnexpectedThing

func ErrUnexpectedThing(expected, got interface{}) error

Types

type MismatchError

type MismatchError struct {
	Expected interface{}
	Got      interface{}
}

func (MismatchError) Error

func (e MismatchError) Error() string

type Parser

type Parser interface {
	Parse() (ast.Chunk, bool)
	Errors() []error
}

Parser describes a parser that can parse input into a Lua ast.Block.

func New

func New(input io.Reader) (Parser, error)

New creates a new single-use Lua-parser.

Jump to

Keyboard shortcuts

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