Implemented source tracking and type checking
All checks were successful
/ test (push) Successful in 21s

This commit is contained in:
Eduard Urbach 2025-06-27 00:05:16 +02:00
parent 70c2da4a4d
commit 329fcfff6f
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
30 changed files with 427 additions and 125 deletions

View file

@ -1,11 +1,15 @@
package ssa
import "fmt"
import (
"fmt"
"git.urbach.dev/cli/q/src/types"
)
type Syscall struct {
Arguments
Liveness
HasToken
Source
}
func (a *Syscall) Equals(v Value) bool {
@ -23,5 +27,9 @@ func (v *Syscall) IsConst() bool {
}
func (v *Syscall) String() string {
return fmt.Sprintf("syscall%v", v.Args)
return fmt.Sprintf("syscall(%v)", v.Arguments)
}
func (v *Syscall) Type() types.Type {
return types.Any
}