Created
December 10, 2018 05:38
-
-
Save wtsnjp/373ac5be6440d16600466223c4152a67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% plain TeX | |
\catcode`@=11 | |
\def\x@cmd(#1){\edef\x@tmp{#1}\ifx\x@tmp\empty | |
o\expandafter\x@cmd\else\x@fin #1\fi}\def\x@fin'#1'{#1} | |
\catcode`g=13\chardef\x@s=`g\defg{\char\x@s\x@cmd} | |
\catcode`@=12 | |
% tests | |
\noindent | |
g('al')\break | |
g()('al')\break | |
g()()('al')\break | |
g()()()('al')\break | |
g()()()()('al')\bye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cf. https://github.com/eatnumber1/goal