ast

package
v0.0.0-...-917f730 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 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 Annotation

type Annotation struct {
	Position
	Kind  AnnotationKind // Annotation kind (https://tezos.gitlab.io/alpha/michelson.html#annotations)
	Value string
}

type AnnotationKind

type AnnotationKind uint8
const (
	TypeAnnotation AnnotationKind = iota
	VariableAnnotation
	FieldAnnotation
)

type Bytes

type Bytes struct {
	Position
	Value string
}

func (Bytes) String

func (n Bytes) String() string

type Int

type Int struct {
	Position
	Value string
}

func (Int) String

func (n Int) String() string

type Node

type Node interface {
	String() string
}

type Position

type Position struct {
	Pos int
	End int
}

type Prim

type Prim struct {
	Position
	Prim        string
	Annotations []Annotation
	Arguments   []Node
}

func (Prim) String

func (n Prim) String() string

type Sequence

type Sequence struct {
	Position
	Elements []Node // list of elements in the sequence
}

func (Sequence) String

func (n Sequence) String() string

type String

type String struct {
	Position
	Value string
}

func (String) String

func (n String) String() string

Jump to

Keyboard shortcuts

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