From 4f23155ca7f8591cae0be6938610386513d24b7f Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 27 Jul 2022 22:20:28 +0000 Subject: Put correct token strings in parser errors --- pkg/lang/ast/stmt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/lang/ast') 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 -- cgit 1.4.1