%{ #include <stdio.h> %} %% .|\n { /* Ignore other characters */ } %% int yywrap() { return 1; } int main() { yylex(); return 0; }
int a=10; int b=25; int c=a+b;
Standard output is empty
ERROR: /home/d89SSH/prog:17:1: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? ERROR: Can't ignore goal at this port ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? ERROR: Can't ignore goal at this port ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit