// see also man/calculator/scanner/lexer

%interactive
%filenames scanner

%%

[ \t]+                          // skip white space

\n                              return Parser::EOLN;

[0-9]+                          return Parser::NUMBER;

.                               return matched()[0];


%%


