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.
1234567891011121314151617181920212223242526272829303132333435package ssa
import ( "fmt"
"git.urbach.dev/cli/q/src/types")
// Bool is a boolean value.type Bool struct { Independent Liveness Bool bool Source}
// Equals returns true if the boolean values are equal.func (a *Bool) Equals(v Value) bool { b, sameType := v.(*Bool)
if !sameType { return false }
return a.Bool == b.Bool}
// IsPure returns true because a boolean value is always constant.func (b *Bool) IsPure() bool { return true }
// String returns a human-readable representation of the boolean value.func (b *Bool) String() string { return fmt.Sprint(b.Bool) }
// Type returns the boolean type.func (b *Bool) Type() types.Type { return types.Bool }