#ifndef CALC_H #define CALC_H enum Token { NUM=1, OPA, OPM, LP, RP, STOP }; union TokenSemantic { int num; char sym; }; extern TokenSemantic yylval; int yylex(); #endif // CALC_H
Click here to download c09/calc.h
.
#ifndef CALC_H #define CALC_H enum Token { NUM=1, OPA, OPM, LP, RP, STOP }; union TokenSemantic { int num; char sym; }; extern TokenSemantic yylval; int yylex(); #endif // CALC_H