%interactive
%filenames scanner

%%

[ \t]                       // ignored

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

"."[0-9]+                   |
[0-9]+"."[0-9]*             return Parser::DOUBLE;

.|\n                        return matched()[0];
