ast

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

Printer #

func New

func New(ast expr.Expr) *Printer

New Printer

func (*Printer) Print

func (ac *Printer) Print(expression expr.Expr) (string, error)

Print ast structure

func (*Printer) String

func (ac *Printer) String() (string, error)

func (*Printer) VisitBinaryExpr

func (ac *Printer) VisitBinaryExpr(binaryExpr *expr.Binary) (interface{}, error)

VisitBinaryExpr #

func (*Printer) VisitFunctionCall

func (ac *Printer) VisitFunctionCall(functionCallExpr *expr.FunctionCall) (interface{}, error)

VisitFunctionCall #

func (*Printer) VisitGroupExpr

func (ac *Printer) VisitGroupExpr(groupExpr *expr.Group) (interface{}, error)

VisitGroupExpr #

func (*Printer) VisitLiteralExpr

func (ac *Printer) VisitLiteralExpr(literalExpression *expr.Literal) (interface{}, error)

VisitLiteralExpr #

func (*Printer) VisitLogicalExpr

func (ac *Printer) VisitLogicalExpr(logicalExpr *expr.Logical) (interface{}, error)

VisitLogicalExpr #

func (*Printer) VisitTernary

func (ac *Printer) VisitTernary(ternaryExpr *expr.Ternary) (interface{}, error)

VisitTernary #

func (*Printer) VisitUnaryExpr

func (ac *Printer) VisitUnaryExpr(unaryExpr *expr.Unary) (interface{}, error)

VisitUnaryExpr #

func (*Printer) VisitVariableExpr

func (ac *Printer) VisitVariableExpr(variableExpression *expr.Variable) (interface{}, error)

VisitVariableExpr #

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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