#include <stdio.h> extern int yylval; yylex() { yylval = getchar(); if (yylval == EOF) return 0; return yylval; }