/* SI 413 Fall 2011 * Lab 5 * ex1.lpp */ %{ #include <iostream> using namespace std; #include "ex1.tab.hpp" %} %option noyywrap %% [a-zA-Z0-9]+ { return SYM; } "->" { return ARROW; } "|" { return OR; } <<EOF>> { return 0; } [ \t\n]+ { } . { cerr << "Unrecognized token!" << endl; exit(1); } %%