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.
12345678910111213141516171819202122232425262728293031package ssa
import ( "fmt")
// Return transfers program flow back to the caller.type Return struct { Void Arguments}
// Equals returns true if the returns are equal.func (a *Return) Equals(v Value) bool { b, sameType := v.(*Return)
if !sameType { return false }
return a.Arguments.Equals(b.Arguments)}
// String returns a human-readable representation of the return.func (r *Return) String() string { if len(r.Arguments) == 0 { return "return" }
return fmt.Sprintf("return %s", r.Arguments.String())}