frontend: update lex token usage
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
extern void print_lex_token(struct ivy_token *tok)
|
extern void print_lex_token(struct ivy_token *tok)
|
||||||
{
|
{
|
||||||
printf("[%lu:%lu - %lu:%lu] ", tok->t_start.p_row, tok->t_start.p_col,
|
printf("[%lu:%lu - %lu:%lu] ", tok->t_start.c_row, tok->t_start.c_col,
|
||||||
tok->t_end.p_row, tok->t_end.p_col);
|
tok->t_end.c_row, tok->t_end.c_col);
|
||||||
|
|
||||||
switch (tok->t_type) {
|
switch (tok->t_type) {
|
||||||
case IVY_TOK_KEYWORD:
|
case IVY_TOK_KEYWORD:
|
||||||
|
|||||||
Reference in New Issue
Block a user