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/compiler | |
| parent | be281507daf2d1d7f66f32daa42ef78daa48c5dd (diff) | |
| download | jinx-4f23155ca7f8591cae0be6938610386513d24b7f.tar.zst jinx-4f23155ca7f8591cae0be6938610386513d24b7f.zip | |
Put correct token strings in parser errors
Diffstat (limited to 'pkg/lang/compiler')
| -rw-r--r-- | pkg/lang/compiler/compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/lang/compiler/compiler.go b/pkg/lang/compiler/compiler.go index 9dbfd12..9c4bda4 100644 --- a/pkg/lang/compiler/compiler.go +++ b/pkg/lang/compiler/compiler.go @@ -51,8 +51,8 @@ func (comp *Compiler) compileStmt(t *code.Builder, stmt ast.Stmt) error { case ast.StmtKindFnDecl: fnDeclStmt := stmt.Value.(ast.StmtFnDecl) err = comp.compileFnDeclStmt(t, fnDeclStmt) - case ast.StmtKindObjectDecl: - panic("object declaration statements not implemented") + case ast.StmtKindTypeDecl: + panic("type declaration statements not implemented") case ast.StmtKindVarDecl: decl := stmt.Value.(ast.StmtVarDecl) err = comp.compileVarDeclStmt(t, decl) |
