Documentation ¶
Index ¶
- Variables
- type AccountBalance
- type AccountMetadata
- type AccountsMetadata
- type BalanceQuery
- type Balances
- type ExecutionResult
- type InterpreterError
- type Metadata
- type MetadataQuery
- type ParseResult
- func (p ParseResult) GetParsingErrors() []ParserError
- func (p ParseResult) GetSource() string
- func (p ParseResult) Run(ctx context.Context, vars VariablesMap, store Store) (ExecutionResult, InterpreterError)
- func (p ParseResult) RunWithFeatureFlags(ctx context.Context, vars VariablesMap, store Store, ...) (ExecutionResult, InterpreterError)
- type ParserError
- type Posting
- type StaticStore
- type Store
- type Value
- type VariablesMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseErrorsToString = parser.ParseErrorsToString
Functions ¶
This section is empty.
Types ¶
type AccountBalance ¶
type AccountBalance = interpreter.AccountBalance
type AccountMetadata ¶
type AccountMetadata = interpreter.AccountMetadata
type AccountsMetadata ¶
type AccountsMetadata = interpreter.AccountsMetadata
The newly defined account metadata after the execution
type BalanceQuery ¶
type BalanceQuery = interpreter.BalanceQuery
For each account, list of the needed assets
type Balances ¶
type Balances = interpreter.Balances
type ExecutionResult ¶
type ExecutionResult = interpreter.ExecutionResult
type InterpreterError ¶
type InterpreterError = interpreter.InterpreterError
type MetadataQuery ¶
type MetadataQuery = interpreter.MetadataQuery
type ParseResult ¶
type ParseResult struct {
// contains filtered or unexported fields
}
This struct represents a parsed numscript source code
func Parse ¶
func Parse(code string) ParseResult
func (ParseResult) GetParsingErrors ¶
func (p ParseResult) GetParsingErrors() []ParserError
func (ParseResult) GetSource ¶
func (p ParseResult) GetSource() string
func (ParseResult) Run ¶
func (p ParseResult) Run(ctx context.Context, vars VariablesMap, store Store) (ExecutionResult, InterpreterError)
func (ParseResult) RunWithFeatureFlags ¶ added in v0.0.10
func (p ParseResult) RunWithFeatureFlags( ctx context.Context, vars VariablesMap, store Store, featureFlags map[string]struct{}, ) (ExecutionResult, InterpreterError)
type ParserError ¶
type ParserError = parser.ParserError
type Posting ¶
type Posting = interpreter.Posting
type StaticStore ¶
type StaticStore = interpreter.StaticStore
type Store ¶
type Store = interpreter.Store
type Value ¶
type Value = interpreter.Value
type VariablesMap ¶
type VariablesMap = interpreter.VariablesMap
Click to show internal directories.
Click to hide internal directories.