35 lines
419 B
Go
35 lines
419 B
Go
// Code generated by tools/gen-ast.go DO NOT EDIT.
|
|
package main
|
|
|
|
type Expr interface {
|
|
isExpr()
|
|
}
|
|
|
|
type Binary struct {
|
|
left Expr
|
|
operator Token
|
|
right Expr
|
|
}
|
|
|
|
func (x Binary) isExpr() {}
|
|
|
|
type Grouping struct {
|
|
expression Expr
|
|
}
|
|
|
|
func (x Grouping) isExpr() {}
|
|
|
|
type Literal struct {
|
|
value interface{}
|
|
}
|
|
|
|
func (x Literal) isExpr() {}
|
|
|
|
type Unary struct {
|
|
operator Token
|
|
right Expr
|
|
}
|
|
|
|
func (x Unary) isExpr() {}
|
|
|