snbt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser(snbt string) *Parser

func (*Parser) Char

func (p *Parser) Char(index int) (rune, error)

func (*Parser) Compact

func (p *Parser) Compact() error

func (*Parser) CurrToken

func (p *Parser) CurrToken() *Token

func (*Parser) Next

func (p *Parser) Next() error

func (*Parser) PrevToken

func (p *Parser) PrevToken() *Token

func (*Parser) Slice

func (p *Parser) Slice(start int, end int) ([]byte, error)

type Token

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

func (*Token) Char

func (t *Token) Char() rune

func (*Token) Index

func (t *Token) Index() int

Jump to

Keyboard shortcuts

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