%filenames scanner

//%interactive
//%debug

ID      [[:alpha:]_][[:alnum:]_-]*

%%

//%nowarn
^[ \t]*(#.*)?                   // ignore ws (+ comment) at BOL

[ \t]+                          return Tokens::WS;

[0-9]+                          return Tokens::NR;

{ID}                            return Tokens::ID;

[*/,=\n-]                       return matched()[0];

.                               return Tokens::CHAR;





