calc_lex.l /* DEFINITION SECTION */ %{ #include "calc_yacc.h" #include extern double yylval; %} WHITE_SPACE [ \t]+ END_MARKER "$" DOUBLE_VAL ([0-9]+|([0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) %% /* RULE SECTION */ {DOUBLE_VAL} { yylval = atof(yytext); return NUMBER; } "+"{ return PLUS; } "-"{ return MINUS; } "*"{ return MULT; } "/"{ return DIV; } "abs"{ return ABS; } "sqrt"{ return SQRT; } "log"{ retur..