%option noyywrap %{ #include <stdio.h> %} %% ^[ \t]*//.*$ { printf("Comment line (//)\n"); } .*\n { printf("Not a comment line\n"); } %% int main(){ yylex(); return 0; }
//ji
Standard output is empty
ERROR: /home/VgOWsn/prog:10:32: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? [Illegal port specification] Exception: (3) program ? EOF: exit