%{ #include "leuchtturm.tab.h" %} %option noyywrap %option nodefault %% "rot" { return(ROT); } "weiss" { return(WEISS); } \n { return 0; /* Nur eine Zeile lesen. */ } [ \t] /* Ignoriere sonstigen Whitespace. */ . { return(SCHREIBFEHLER); }