mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 14:20:48 +00:00
17 lines
254 B
Go
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}
|
|
}
|