summaryrefslogtreecommitdiff
path: root/src/parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.zig')
-rw-r--r--src/parser.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parser.zig b/src/parser.zig
index fa0acec..8cd539f 100644
--- a/src/parser.zig
+++ b/src/parser.zig
@@ -140,12 +140,8 @@ pub const Parser = struct {
},
.ident => {
const ident = (try self.tokens.consume(.ident)).?;
- const symbType = if (self.top.get(ident.ident)) |sym|
- sym.Type
- else
- return ParsingError.UnknownIdentifier;
typ = TypeIdent{
- .ident = symbType.toString(),
+ .ident = "i32",
.list = false,
};
break :blk ExprKind{ .ident = ident };