%{ #include "if-then-else-prec2.tab.h" %} %option noyywrap %option nodefault %% "if" { return IF; } "then" { return THEN; } "else" { return ELSE; } [[:alpha:]][[:alnum:]]* { return EXPR; } [ \t]+ /* ueberspringe White-Space */ \n { return 0; /* Nur eine Zeile lesen. */ } . { return ILLEGAL_CHAR; }