parser

package
v0.0.0-...-a54ad32 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnquoteContext = errors.New("use of unquote outside of quasiquote context")

Functions

func Read

func Read(r io.Reader) (skim.Vector, error)

Types

type BadCharError

type BadCharError rune

BadCharError is an error describing an invalid character encountered during parsing. It is typically set as the Err field of a SyntaxError.

func (BadCharError) Error

func (r BadCharError) Error() string

type SyntaxError

type SyntaxError struct {
	Line, Col int
	Err       error
	Desc      string
}

SyntaxError is an error returned when the INI parser encounters any syntax it does not understand. It contains the line, column, any other error encountered, and a description of the syntax error.

func (*SyntaxError) Error

func (s *SyntaxError) Error() string

type UnclosedError

type UnclosedError rune

UnclosedError is an error describing an unclosed bracket from {, (, [, and <. It is typically set as the Err field of a SyntaxError.

Its value is expected to be one of the above opening braces.

func (UnclosedError) Error

func (u UnclosedError) Error() string

func (UnclosedError) Expecting

func (u UnclosedError) Expecting() rune

Expecting returns the rune that was expected but not found for the UnclosedError's rune value.

Jump to

Keyboard shortcuts

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