Clone in a terminal:
%{
#define YYSTYPE double
#include "calc.tab.h"
extern YYSTYPE yylval;
%}

%%
[0-9]+\.?[0-9]* { yylval = atof( yytext ); return NUMBER; };
[ \t] ;  /* ignore whitespace */
\n      { return yytext[0]; };
. 	{   return yytext[0]; }
<<EOF>> { printf("eof\n"); return 0; };
%%

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112