about summary refs log tree commit diff
path: root/pkg/lang/compiler/symbol.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/compiler/symbol.go')
-rw-r--r--pkg/lang/compiler/symbol.go39
1 files changed, 0 insertions, 39 deletions
diff --git a/pkg/lang/compiler/symbol.go b/pkg/lang/compiler/symbol.go
deleted file mode 100644
index 453cb2b..0000000
--- a/pkg/lang/compiler/symbol.go
+++ /dev/null
@@ -1,39 +0,0 @@
-package compiler
-
-import "jinx/pkg/lang/vm/code"
-
-type SymbolKind int
-
-const (
-	SymbolKindVariable SymbolKind = iota
-	SymbolKindFunction
-)
-
-func (s SymbolKind) String() string {
-	switch s {
-	case SymbolKindVariable:
-		return "variable"
-	case SymbolKindFunction:
-		return "function"
-	default:
-		panic("unknown symbol kind")
-	}
-}
-
-type Symbol[D SymbolData] struct {
-	name string
-	data D
-}
-
-type SymbolData interface {
-	SymbolVariable | SymbolFunction
-}
-
-type SymbolVariable struct {
-	localIndex int
-}
-
-type SymbolFunction struct {
-	marker code.Marker
-	args   uint
-}