sjson

package
v0.0.0-...-e589b7e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(writer io.Writer, v Value) error

Encode encodes a SJSON value to the writer.

Types

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

func NewLexer

func NewLexer(reader io.Reader) *Lexer

NewLexer initializes a new lexer that can be used with Decode.

func (*Lexer) Error

func (lex *Lexer) Error(s string)

func (*Lexer) Lex

func (lex *Lexer) Lex(lval *yySymType) int

func (*Lexer) Reader

func (lex *Lexer) Reader() *bufio.Reader

func (Lexer) String

func (lex Lexer) String() string

type Value

type Value interface{}

Value represents a SJSON value.

func Decode

func Decode(lex *Lexer) (Value, error)

Decode decodes a SJSON value from the stream.

Jump to

Keyboard shortcuts

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