testing int with yyleng

This commit is contained in:
Partho Bhattacharya
2025-02-13 19:28:38 -05:00
parent 90407da44c
commit 3c6d3be9b4
6 changed files with 9 additions and 3 deletions

View File

@ -824,7 +824,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
#line 27 "lexicalStructure.lex"
{if(DEBUG) {printf( "T_INTEGER: %s (%d)\n", yytext, T_INTEGER);} else {return T_INTEGER;}}
{if(DEBUG) {printf( "T_INTEGER: %s (%d)\n", yytext, T_INTEGER);} else {column_number=column_number+yyleng; return T_INTEGER;}}
YY_BREAK
case 2:
YY_RULE_SETUP