\def\optimization{5}

\input yycommon.sty % general routines for stack and array access
\input yymisc.sty   % helper macros (stack manipulation, table processing, value stack pointers)
\input yyinput.sty  % input functions
\input yyparse.sty  % parser machinery
\input flex.sty     % lexer functions
\input yyfaststack.sty % sped up stack access functions
\input yyboth.sty   % parser initializatio, optimization

\let\yylexreturn\yylexreturnregular
\let\setflexstates\relax
\let\parsernamespace\empty

\genericparser 
    name: main, 
    ptables: ptab.tex, 
    ltables: ltab.tex, 
    tokens: {}, 
    asetup: {}, 
    dsetup: {}, 
    rsetup: {},
    optimization: \optimizeall;%

\tomainparser
