GeneralLaTeX Formal Grammar

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bmiguel11
Posts: 2
Joined: Tue Jan 18, 2011 12:04 pm

LaTeX Formal Grammar

Post by bmiguel11 »

Good morning,

Does anyone know where can I find a list of all the regular expressions recognized by the LaTeX's lexer and the language's formal grammar?

Thank you very much.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: LaTeX Formal Grammar

Post by josephwright »

There isn't one. TeX's use of category codes means that the input does not necessarily conform to a rigid scheme. While the LaTeX kernel uses a broadly more restricted range of syntax, plain TeX macros and primitives are perfectly-valid LaTeX input and so the same situation applies.
Joseph Wright
Post Reply