got some chars to identify and edited the simple literal test to include more examples -Task01

This commit is contained in:
Partho Bhattacharya
2025-02-07 15:40:48 -05:00
parent 145d3eeb85
commit db66b04033
2 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,7 @@ DIGIT [0-9]
"null" {printf( "C_NULL: %s (%d)\n", yytext, atoi( yytext ) );}
"'"[.|\n]"'" {printf( "C_CHARACTER: %s (%d)\n", yytext, atoi( yytext ) );} /*using double \ per documentation to show escaped chars*/
\'.\'|\'\\[nt]\' {printf( "C_CHARACTER: %s (%d)\n", yytext, atoi( yytext ) );} /*using double \ per documentation to show escaped chars*/
"true" {printf( "C_TRUE: %s (%d)\n", yytext, atoi( yytext ) );}

View File

@ -8,4 +8,9 @@ null
'7'
true
'189
'/n'
'/t'
'"'
'/'