// %interactive
%filenames scanner
// %debug

%%

[ \t]+                          // Often used: skip white space
\n                              // same

const                   return Parser::CONST;

[a-zA-Z_][a-zA-Z0-9_]*  {
                            *d_semval = new Ident(matched());
                            return Parser::IDENTIFIER;
                        }

.                       return matched()[0];


%%



