luatex-preprocessor-test.tex /size: 686 b    last modification: 2020-07-01 14:35
1\ifdefined\inputpreprocessed
2
3    \def\TestOne[#1]%
4      {test one: [#1]\par}
5
6    \def\TestTwo#some%
7      {test two: #some\par}
8
9    \def\TestThree[#whatever][#more]%
10      {test three: [#more] and [#whatever]\par}
11
12    \def\TestFour[#one]#two%
13      {\def\TestFive[#alpha][#one]%
14         {test four and five: [#one], [#two] and [#alpha]}\par}
15
16    \def\TestSix[#{one}]#{two}%
17      {test six: [#{one}] and #{two}\par}
18
19    \TestOne  [one]
20    \TestTwo  {one}
21    \TestThree[one][two]
22    \TestFour [one]{two}
23    \TestFive [one][two]
24    \TestSix  [one]{two}
25
26\else
27    \input{luatex-preprocessor.tex}
28    \inputpreprocessed{luatex-preprocessor-test.tex}
29    \expandafter \end
30\fi
31