Better debug output.
parent
6e9f8cf142
commit
46df247608
|
@ -272,7 +272,7 @@ const Parser = struct {
|
||||||
// Either simple or full header.
|
// Either simple or full header.
|
||||||
const identifier: ?[] const u8 = try p.parseFullClassHeader();
|
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| {
|
if (identifier) |id| {
|
||||||
std.debug.print(", id: {}\n", .{id});
|
std.debug.print(", id: {}\n", .{id});
|
||||||
|
@ -286,10 +286,8 @@ const Parser = struct {
|
||||||
const ignored = try p.expectToken(.LBrace);
|
const ignored = try p.expectToken(.LBrace);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
// TODO: parsing class content.
|
|
||||||
// TODO: loop over this.
|
|
||||||
const token = p.nextToken();
|
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]) {
|
switch (p.token_ids[token]) {
|
||||||
|
|
||||||
.Identifier => {
|
.Identifier => {
|
||||||
|
|
Loading…
Reference in New Issue