Documentation ¶
Index ¶
- type Binary
- type Expr
- type ExprVisitor
- type Grouping
- type Literal
- type PrintifyVisitor
- func (v PrintifyVisitor) Print(expression Expr)
- func (v PrintifyVisitor) String(expression Expr) string
- func (v PrintifyVisitor) VisitBinaryExpr(b *Binary) any
- func (v PrintifyVisitor) VisitGroupingExpr(g *Grouping) any
- func (v PrintifyVisitor) VisitLiteralExpr(l *Literal) any
- func (v PrintifyVisitor) VisitUnaryExpr(u *Unary) any
- type Unary
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExprVisitor ¶
type ExprVisitor struct{}
func (ExprVisitor) VisitBinaryExpr ¶
func (v ExprVisitor) VisitBinaryExpr(b *Binary) any
func (ExprVisitor) VisitGroupingExpr ¶
func (v ExprVisitor) VisitGroupingExpr(g *Grouping) any
func (ExprVisitor) VisitLiteralExpr ¶
func (v ExprVisitor) VisitLiteralExpr(l *Literal) any
func (ExprVisitor) VisitUnaryExpr ¶
func (v ExprVisitor) VisitUnaryExpr(u *Unary) any
type PrintifyVisitor ¶
type PrintifyVisitor struct{}
func (PrintifyVisitor) Print ¶
func (v PrintifyVisitor) Print(expression Expr)
func (PrintifyVisitor) String ¶
func (v PrintifyVisitor) String(expression Expr) string
func (PrintifyVisitor) VisitBinaryExpr ¶
func (v PrintifyVisitor) VisitBinaryExpr(b *Binary) any
func (PrintifyVisitor) VisitGroupingExpr ¶
func (v PrintifyVisitor) VisitGroupingExpr(g *Grouping) any
func (PrintifyVisitor) VisitLiteralExpr ¶
func (v PrintifyVisitor) VisitLiteralExpr(l *Literal) any
func (PrintifyVisitor) VisitUnaryExpr ¶
func (v PrintifyVisitor) VisitUnaryExpr(u *Unary) any
Click to show internal directories.
Click to hide internal directories.