fork github.com/doug-martin

This commit is contained in:
2025-03-22 23:02:05 +08:00
commit f14642a736
131 changed files with 34555 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package exp
type compound struct {
t CompoundType
rhs AppendableExpression
}
func NewCompoundExpression(ct CompoundType, rhs AppendableExpression) CompoundExpression {
return compound{t: ct, rhs: rhs}
}
func (c compound) Expression() Expression { return c }
func (c compound) Clone() Expression {
return compound{t: c.t, rhs: c.rhs.Clone().(AppendableExpression)}
}
func (c compound) Type() CompoundType { return c.t }
func (c compound) RHS() AppendableExpression { return c.rhs }