got some chars to identify and edited the simple literal test to include more examples -Task01
This commit is contained in:
@ -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 ) );}
|
||||
|
||||
|
@ -8,4 +8,9 @@ null
|
||||
'7'
|
||||
true
|
||||
'189
|
||||
'/n'
|
||||
'/t'
|
||||
'"'
|
||||
'/'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user