ast

package
v0.0.0-...-2a2e301 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 2 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	Position Position
	Value    []Value
	Data     []rune
}

func (*Array) End

func (a *Array) End() int

func (*Array) Pos

func (a *Array) Pos() int

func (*Array) Source

func (a *Array) Source() string

type Boolean

type Boolean struct {
	Position Position
	Value    string
	Data     []rune
}

func (*Boolean) Boolean

func (b *Boolean) Boolean() (bool, error)

func (*Boolean) End

func (b *Boolean) End() int

func (*Boolean) Pos

func (b *Boolean) Pos() int

func (*Boolean) Source

func (b *Boolean) Source() string

type Datetime

type Datetime struct {
	Position Position
	Value    string
	Data     []rune
}

func (*Datetime) End

func (d *Datetime) End() int

func (*Datetime) Pos

func (d *Datetime) Pos() int

func (*Datetime) Source

func (d *Datetime) Source() string

func (*Datetime) Time

func (d *Datetime) Time() (time.Time, error)

type Float

type Float struct {
	Position Position
	Value    string
	Data     []rune
}

func (*Float) End

func (f *Float) End() int

func (*Float) Float

func (f *Float) Float() (float64, error)

func (*Float) Pos

func (f *Float) Pos() int

func (*Float) Source

func (f *Float) Source() string

type Integer

type Integer struct {
	Position Position
	Value    string
	Data     []rune
}

func (*Integer) End

func (i *Integer) End() int

func (*Integer) Int

func (i *Integer) Int() (int64, error)

func (*Integer) Pos

func (i *Integer) Pos() int

func (*Integer) Source

func (i *Integer) Source() string

type KeyValue

type KeyValue struct {
	Key   string
	Value Value
	Line  int
}

type Position

type Position struct {
	Begin int
	End   int
}

type String

type String struct {
	Position Position
	Value    string
	Data     []rune
}

func (*String) End

func (s *String) End() int

func (*String) Pos

func (s *String) Pos() int

func (*String) Source

func (s *String) Source() string

type Table

type Table struct {
	Position Position
	Line     int
	Name     string
	Fields   map[string]interface{}
	Type     TableType
	Data     []rune
}

func (*Table) End

func (t *Table) End() int

func (*Table) Pos

func (t *Table) Pos() int

func (*Table) Source

func (t *Table) Source() string

type TableType

type TableType uint8
const (
	TableTypeNormal TableType = iota
	TableTypeArray
)

func (TableType) String

func (t TableType) String() string

type Value

type Value interface {
	Pos() int
	End() int
	Source() string
}

Jump to

Keyboard shortcuts

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