Re: TeX syntax?

A Johnstone <adrian@cs.rhul.ac.uk>
9 Feb 2007 09:02:31 -0500

          From comp.compilers

Related articles
TeX syntax? rjshaw@netspace.net.au (Russell Shaw) (2007-02-08)
Re: TeX syntax? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-02-09)
Re: TeX syntax? adrian@cs.rhul.ac.uk (A Johnstone) (2007-02-09)
Re: TeX syntax? ara@nestle.csail.mit.edu (Allan Adler) (2007-02-09)
Re: TeX syntax? phlucas@f-m.fm (Philipp Lucas) (2007-02-12)
Re: TeX syntax? jhallen@TheWorld.com (2007-02-16)
Re: TeX syntax? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-02-16)
Re: TeX syntax? jhallen@TheWorld.com (2007-02-25)
Re: TeX syntax? gjthill@gmail.com (Jim Hill) (2007-02-25)
[3 later articles]
| List of all articles for this month |
From: A Johnstone <adrian@cs.rhul.ac.uk>
Newsgroups: comp.compilers
Date: 9 Feb 2007 09:02:31 -0500
Organization: Janet Usenet Reading Service.
References: 07-02-024
Keywords: macros
Posted-Date: 09 Feb 2007 09:02:31 EST

Russell Shaw <rjshaw@netspace.net.au> wrote:
> Hi,
> I've looked high and low without success. Where can i find
> something resembling the BNF of Knuth's TeX typesetting syntax?


Well, the stuff is in the TeXbook, but for most practical applications
that won't get you very far because TeX is a macro-processing
language, which has a tendency to blur (in practice although not in
theory) the syntax and the semantics of the language. Typical
user-visible features in plain or LaTeX involve many layers of macros.
When I try to parse LaTeX I usually just write a crude parser that
recognises LaTeX's special characters and gobbles up {} and []
delimited paramaters. The BNF is trivial.


                                                Adrian



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.