astbuilder

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTBuilder

type ASTBuilder interface {
	ASTStateManagement
	TokenProvider
	RecordStateValue(valueType ast.AST_NODETYPE, nodeValue interface{}) error
}

type ASTStateManagement

type ASTStateManagement interface {
	GetAST() ast.JsonNode
	HasComplete() bool
	TopElementType() (ast.AST_NODETYPE, error)
	HasOpenElements() bool
}

type NodeConstructor

type NodeConstructor interface {
	CreateNodeWithValue(valueType ast.AST_NODETYPE, nodeValue interface{}) (ast.JsonNode, error)
}

type TokenProvider

type TokenProvider interface {
	ReadBool() (bool, error)
	ReadNull() error
	ReadNumber() (interface{}, error)
	ReadString() ([]byte, error)
	ReadVariable() ([]byte, error)
	GetNextTokenType() (token.TokenType, error)
}

type TokenProviderOptions added in v0.5.0

type TokenProviderOptions func(TokenProvider) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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