%{ #include <stdio.h> %} %% (b|r|p)[A-Z]{2}[a-z_0-9]* { printf("Expression reconnue\n"); } .|\n { printf("Expression non reconnue\n"); } %% int yywrap() { return 1; } int main() { yylex(); }
Standard input is empty
Standard output is empty
ERROR: /home/OyV0bP/prog:12:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit