// NewUnaryOp . func NewUnaryOp(token lexer.TokenType, operand Expr) *UnaryOp { lit := &UnaryOp{ Token: token, Operand: operand, } lit._init(token.String()) return lit }
// NewBinaryOp . func NewBinaryOp(token lexer.TokenType, lhs, rhs Expr) *BinaryOp { lit := &BinaryOp{ Token: token, LHS: lhs, RHS: rhs, } lit._init(token.String()) return lit }