I know this is invalid LaTeX code, but the code \end\end
results in the following error:
! TeX capacity exceeded, sorry [input stack size=5000].
\end #1->\csname end#1
\endcsname \@checkend {#1}\expandafter \endgroup \if@e...
l.1 \end\end
Why does this result in "TeX capacity exceeded" when this is simply invalid syntax?
\end
in the LaTeX kernel. With only primitives it should be\def\a{a\a}\a