%option noyywrap %{ #include<stdio.h> %} %% %% main(int argc, char* argv[]) { if(argc > 1) { } FILE *fp = fopen(argv[1], "r"); if(fp) yyin = fp; yylex(); return 1; }
Standard input is empty
Standard output is empty
ERROR: /home/u7yZwe/prog:17:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit