1 2 3 4 5 6 7 8 9 10 11 12 | #include <stdio.h>
#include "lexer.h"
int
main(void)
{
while (getToken() != EOI) {
printf("%zu.%zu: %s '%s'\n", token.pos.line, token.pos.col,
strTokenKind(token.kind), token.val.cstr);
}
}
|
1 2 3 4 5 6 7 8 9 10 11 12 | #include <stdio.h>
#include "lexer.h"
int
main(void)
{
while (getToken() != EOI) {
printf("%zu.%zu: %s '%s'\n", token.pos.line, token.pos.col,
strTokenKind(token.kind), token.val.cstr);
}
}
|