Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
12345678910111213package optimizer
import "git.urbach.dev/cli/q/src/token"
// foldUnary calculates the result of the unary operation.func foldUnary(op token.Kind, a int) int { switch op { case token.Negate: return -a default: panic("unknown fold operation: " + op.String()) }}