2024-11-25 22:53:29 +01:00
|
|
|
// Code generated by tools/gen-ast.go DO NOT EDIT.
|
|
|
|
package main
|
|
|
|
|
|
|
|
type Expr interface {
|
|
|
|
isExpr()
|
|
|
|
}
|
|
|
|
|
|
|
|
type Binary struct {
|
|
|
|
left Expr
|
2025-01-22 18:55:21 +01:00
|
|
|
operator Token
|
2024-11-25 22:53:29 +01:00
|
|
|
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 {
|
2025-01-22 18:55:21 +01:00
|
|
|
operator Token
|
2024-11-25 22:53:29 +01:00
|
|
|
right Expr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Unary) isExpr() {}
|
|
|
|
|