%option noyywrap %{ #include #include int yyLineNumber = 1; int yylex(); %} /* disable the following functions */ /* to avoid failing code check */ %option nounput %option noinput %% "\n" yyLineNumber++; ":" {DEBUG("\"%s\" tokenized with \':\'", yytext); return(':');}; "=" {DEBUG("\"%s\" tokenized with \'=\'", yytext); return('=');}; "+" {DEBUG("\"%s\" tokenized with \'+\'", yytext); return('+');}; "-" {DEBUG("\"%s\" tokenized with \'-\'", yytext); return('-');}; "*" {DEBUG("\"%s\" tokenized with \'*\'", yytext); return('*');}; "/" {DEBUG("\"%s\" tokenized with \'/\'", yytext); return('/');}; "," {DEBUG("\"%s\" tokenized with \',\'", yytext); return(',');}; ";" {DEBUG("\"%s\" tokenized with \';\'", yytext); return(';');}; "." {DEBUG("\"%s\" tokenized with \'.\'", yytext); return('.');}; "#" {DEBUG("\"%s\" tokenized with \'#\'", yytext); return('#');}; "(" {DEBUG("\"%s\" tokenized with \'(\'", yytext); return('(');}; ")" {DEBUG("\"%s\" tokenized with \')\'", yytext); return(')');}; "[" {DEBUG("\"%s\" tokenized with \'[\'", yytext); return('[');}; "]" {DEBUG("\"%s\" tokenized with \']\'", yytext); return(']');}; "{" {DEBUG("\"%s\" tokenized with \'{\'", yytext); return('{');}; "}" {DEBUG("\"%s\" tokenized with \'}\'", yytext); return('}');}; ">" {DEBUG("\"%s\" tokenized with \'>\'", yytext); return('>');}; "<" {DEBUG("\"%s\" tokenized with \'<\'", yytext); return('<');}; "int" {DEBUG("\"%s\" tokenized with \'