summaryrefslogtreecommitdiff
path: root/support/splint/tex/grabstates.sty
diff options
context:
space:
mode:
Diffstat (limited to 'support/splint/tex/grabstates.sty')
-rw-r--r--support/splint/tex/grabstates.sty16
1 files changed, 6 insertions, 10 deletions
diff --git a/support/splint/tex/grabstates.sty b/support/splint/tex/grabstates.sty
index 1024d99432..7fa259fe7a 100644
--- a/support/splint/tex/grabstates.sty
+++ b/support/splint/tex/grabstates.sty
@@ -1,4 +1,4 @@
-% Copyright 2012-2020, Alexander Shibakov
+% Copyright 2012-2022, Alexander Shibakov
% This file is part of SPLinT
%
% SPLinT is free software: you can redistribute it and/or modify
@@ -39,16 +39,17 @@
\genericparser
name: grabstates,
- ptables: cweb/byytab.tex,
- ltables: cweb/lstab.tex,
+ ptables: cweb/ddptab.tex, % \flex\ secion 1 parser
+ ltables: cweb/ssfstab.tex, % small scanner for \flex\ options
tokens: {},
asetup: \let\setflexstates\relax,
dsetup: {},
rsetup: {},
- optimization: \optimizeall;%
+ optimization: {};%
\let\parsernamespace\grabstatesnamespace
\let\yylexreturn\yylexreturnregular
+\def\yyBEGIN#1{\yyerrterminate}
% stage two parsing macros
@@ -65,17 +66,12 @@
\yybreak{}%
\else % Stage three, process the parsed table
\yybreak{%
- \restorecslist{bootstrap}\yyunion % TODO: this will not work in fs1 sections
+ \restorecslist{bootstrap-flex}\yyflunion %
\the\table\relax
}%
\yycontinue
}
-\fillpstack{b}{%
- \preparsegrabstates
- \relax
-}
-
\fillpstack{fs1}{%
\preparsegrabstates
\relax