%{ /* Author: Ram Samudrala (me@ram.org) * * February 10, 1995. */ /******************************************************************/ #include #include "y.tab.h" /* contains the token definitions */ %} %% [ \n\t]+ { /* ignore whitespace */; } "#".* { /* ignore comments -- A comment starts with a '#' * and continues to end of the line, but does not * include the newline character */ ; } [aA] { return A; } [cC] { return C; } [gG] { return G; } [uU] { return UR; } . { return UNKNOWN; } %%