symbols

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANY = "ANY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean bool

func (*Boolean) Capture

func (b *Boolean) Capture(values []string) error

type Operation

type Operation struct {
	Operation string `json:"operation" parser:"@Ident '='"`
	Value     Value  `json:"value" parser:"@@"`
}

type Symbol

type Symbol struct {
	Operations []*Operation `json:"operations" parser:"('[' (@@ (';' @@)*)* ']' ':')?"`

	Symbol string `json:"symbol" parser:"( @String | @Ident )"`
	// contains filtered or unexported fields
}

func MustParse

func MustParse(symbol string) *Symbol

func Parse

func Parse(symbol string) (*Symbol, error)

func (*Symbol) ForceFresh

func (s *Symbol) ForceFresh() bool

func (*Symbol) MOperations

func (s *Symbol) MOperations() map[string]Value

func (*Symbol) OnlyCache

func (s *Symbol) OnlyCache() bool

func (*Symbol) Source

func (s *Symbol) Source() string

type Value

type Value struct {
	String *string  `json:"string" parser:"@String"`
	Float  *float64 `json:"float" parser:"| @Float"`
	Int    *int64   `json:"int" parser:"| @Int"`
	Bool   *Boolean `json:"boolean" parser:"| @('TRUE' | 'FALSE')"`
}

Jump to

Keyboard shortcuts

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