%{
    #include "storage.hpp"
    long timestamp;
%}
%option nodefault
%option noyywrap
%option nounput
%%
\#[[:digit:]]+  { timestamp = strtoll(yytext+1, NULL, 10);
}
.*              { insert_entry(timestamp, yytext); }
\n              { ; }
%%