Better debug output.

mess
Karchnu 2020-12-17 03:43:22 +01:00
parent 6e9f8cf142
commit 46df247608
1 changed files with 2 additions and 4 deletions

View File

@ -272,7 +272,7 @@ const Parser = struct {
// Either simple or full header.
const identifier: ?[] const u8 = try p.parseFullClassHeader();
p.say("TODO: read class: {}", .{p.giveTokenContent(class_name.?)});
p.say("Reading class: {}", .{p.giveTokenContent(class_name.?)});
if (identifier) |id| {
std.debug.print(", id: {}\n", .{id});
@ -286,10 +286,8 @@ const Parser = struct {
const ignored = try p.expectToken(.LBrace);
while (true) {
// TODO: parsing class content.
// TODO: loop over this.
const token = p.nextToken();
p.say("(top class reading) reading token: {}\n", .{p.giveTokenContent(token)});
p.say("token: {}\n", .{p.giveTokenContent(token)});
switch (p.token_ids[token]) {
.Identifier => {