
/* Lexical analyzer, built with flex.
 
 URG, this really sux.
 we'll leave it for now, until i know more.


 * If this file is named "lexer" then DON'T MODIFY IT!
 * File lexer is built from lexer.in !!!!
 */

%{
#if 0 
  urg, breaks when config.h is included...
 #   include "config.h"
#endif
#   include "yodl2html-post.h"
#   include "parser.h"

#ifdef yywrap
#   undef yywrap
#endif
static int yywrap ()
{
    return (1);
}
%}

%%

".YODLTAGSTART."            return (tok_starttag);
".YODLTAGEND."              return (tok_endtag);
\n                      { lineno++; return (tok_space); }
[ \t]+                  return (tok_space);
[a-zA-Z0-9]+            return (tok_string);
.                       return (tok_string);
