diff options
| author | Mel <einebeere@gmail.com> | 2022-07-27 22:20:28 +0000 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-27 22:50:42 +0000 |
| commit | 4f23155ca7f8591cae0be6938610386513d24b7f (patch) | |
| tree | 7a18b5297dc7d2a9304c802a429abf0869080a79 /pkg/lang/ast/stmt.go | |
| parent | be281507daf2d1d7f66f32daa42ef78daa48c5dd (diff) | |
| download | jinx-4f23155ca7f8591cae0be6938610386513d24b7f.tar.zst jinx-4f23155ca7f8591cae0be6938610386513d24b7f.zip | |
Put correct token strings in parser errors
Diffstat (limited to 'pkg/lang/ast/stmt.go')
| -rw-r--r-- | pkg/lang/ast/stmt.go | 4 |
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 |
