aoc2024/day-24/internal/one/expression.go

17 lines
254 B
Go
Raw Normal View History

2024-12-25 14:46:40 +00:00
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}
}