summaryrefslogtreecommitdiff
path: root/support/splint/examples/xxpression/xxpression.sty
blob: 7ba9c865351ae555a5e4b414614c53725548e172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Copyright 2012-2022, Alexander Shibakov
% This file is part of SPLinT
%
% SPLinT is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% SPLinT is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with SPLinT.  If not, see <http://www.gnu.org/licenses/>.

\def\optimization{5}

\input trt1.sty     % \TeX\ `runtime': temporary register definitions
\input yycommon.sty % general routines for stack and array access
\input yymisc.sty   % helper macros (stack manipulation, table processing, value stack pointers)
                    % parser initializatio, optimization
\input yyinput.sty  % input functions
\input yyparse.sty  % parser machinery
\input flex.sty     % lexer functions
\input yyfaststack.sty % sped up stack access functions

\def\yycomplain#1{\immediate\write16{#1}} % lexer errors

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

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

\toxmainparser