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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
# fifinddo package
# Matthew Bertucci 2022/05/26 for v0.61
#include:stacklet
#include:actcodes
\fileversion#S
\fdPatternCodes
\SetPatternCodes{commands}
\ResetPatternCodes
\PatternCodes
\Delimiters{delim1}{delim2}
\CatCode\%<<char>%>
\PercentChar
\BackslashChar
\BasicNormalCatCodes
\ResultFile{output}
\WriteResult{balanced}
\WriteProvides
\CloseResultFile
\ProcessFileWith{file}{loop-body}#i
\ProcessFileWith[changes]{file}{loop-body}#i
\fdInputLine
\CopyFile{file}#i
\CopyFile[changes]{file}#i
\CopyFile*{file}#i
\CopyFile*[changes]{file}#i
\CopyLine
\ifFinalInputFile
\FinalInputFiletrue
\FinalInputFilefalse
\ProcessFinalFileWith{file}{loop-body}#i
\ProcessFinalFileWith[changes]{file}{loop-body}#i
\StartFDsetup{do-setup}{job-id}
\StartFDsetup{do-setup}{job-id}[changes]
\fdParserId
\MakeSetupCommand{setup-cmd%cmd}{do-setup}{action}#d
\MakeSetupCommand{setup-cmd%cmd}{do-setup}[args]{action}#d
\MakeSubstringConditional{id}{pattern}
\MakeSubstringConditional{id}[changes]{pattern}
\MakeSetupSubstringCondition{id}{pattern}{more-args}
\MakeSetupSubstringCondition{id}[changes]{pattern}{more-args}
\noexpandcsname#*
\TildeGobbles{arg}#*
\RemoveDummyPattern
\RemoveDummyPatternArg{macro}{arg}
\RemoveTilde
\RemoveTildeArg{macro}{arg}
\FDnormalTilde
\FDpseudoTilde
\ProcessStringWith{target-string}{id}
\ProcessExpandedWith{string-macro}{id}
\ProcessInputWith{id}
\CopyFDconditionFromTo{id1}{id2}
\IfFDempty{arg}{when-empty}{when-not-empty}
\IfFDinputEmpty{when-empty}{when-not-empty}
\IfFDdollar{arg}{when-dollar}{when-not-dollar}
\IfFDpreviousInputEmpty{when-empty}{when-not-empty}
\thefdInputLine#*
\CountInputLines
\IfInputLine{%<<relation><number>%>}{%<true%>}{%<false%>}
\MakeExpandableAllReplacer{id}{find}{replace}{id-next}
\MakeExpandableAllReplacer{id}[changes]{find}{replace}{id-next}
\PrependExpandableAllReplacer{id}{find}{replace}
\PrependExpandableAllReplacer{id}[changes]{find}{replace}
\StartPrependingChain
\SetCorrectHookJob{job-id}
\MakeDocCorrectHook{string}
\SetCorrectHookJobLast
\CorrectedInputLine
\ApplySubstringConditional{id}
\ApplySubstringConditionalToExpanded{id}
\ApplySubstringConditionalToInputString{id}
|