aboutsummaryrefslogtreecommitdiff
path: root/pkg/lang/ast
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-07-27 22:20:28 +0000
committerMel <einebeere@gmail.com>2022-07-27 22:50:42 +0000
commit4f23155ca7f8591cae0be6938610386513d24b7f (patch)
tree7a18b5297dc7d2a9304c802a429abf0869080a79 /pkg/lang/ast
parentbe281507daf2d1d7f66f32daa42ef78daa48c5dd (diff)
downloadjinx-4f23155ca7f8591cae0be6938610386513d24b7f.tar.zst
jinx-4f23155ca7f8591cae0be6938610386513d24b7f.zip
Put correct token strings in parser errors
Diffstat (limited to 'pkg/lang/ast')
-rw-r--r--pkg/lang/ast/stmt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/lang/ast/stmt.go b/pkg/lang/ast/stmt.go
index 65b2532..8a538f2 100644
--- a/pkg/lang/ast/stmt.go
+++ b/pkg/lang/ast/stmt.go
@@ -8,7 +8,7 @@ const (
StmtKindEmpty StmtKind = iota
StmtKindUse
StmtKindFnDecl
- StmtKindObjectDecl
+ StmtKindTypeDecl
StmtKindVarDecl
StmtKindIf
StmtKindForCond
@@ -41,7 +41,7 @@ type StmtFnDecl struct {
Body BlockNode
}
-type StmtObjectDecl struct{}
+type StmtTypeDecl struct {}
type StmtVarDecl struct {
Name IdentNode