aoc2024/day-24/internal/one/expression.go
2024-12-25 14:46:40 +00:00

17 lines
254 B
Go

package one
const (
AND = '&'
OR = '|'
XOR = '^'
)
type expression struct {
left, right, target string
op rune
}
func newExpression(left, right, target string, op rune) expression {
return expression{left, right, target, op}
}