%option c++ 8bit noyywrap nostack yymore nodefault %option outfile="CSV_Scanner.C" prefix="zy" comment ^[#;].* string \"({alpha}|{digit}|{punct}|{white})*\" type ({alpha}|_)+ int {digit}+ track ^{digit}+ white [ \t] punct [./\_:,;<>?!(){}|]|"-"|"["|"]" alpha [A-Za-z] digit [0-9] %% "," return 1; {comment} return 2; {track} return 3; {int} return 4; {type} return 5; {string} return 6; \n return 7; [ \t] return 8; . return 9; <> return 10; %% #include "lexer.h"