Re: TeX syntax? (Joseph H Allen)
16 Feb 2007 02:05:20 -0500

          From comp.compilers

Related articles
TeX syntax? (Russell Shaw) (2007-02-08)
Re: TeX syntax? (glen herrmannsfeldt) (2007-02-09)
Re: TeX syntax? (A Johnstone) (2007-02-09)
Re: TeX syntax? (Allan Adler) (2007-02-09)
Re: TeX syntax? (Philipp Lucas) (2007-02-12)
Re: TeX syntax? (2007-02-16)
Re: TeX syntax? (glen herrmannsfeldt) (2007-02-16)
Re: TeX syntax? (2007-02-25)
Re: TeX syntax? (Jim Hill) (2007-02-25)
| List of all articles for this month |

From: (Joseph H Allen)
Newsgroups: comp.compilers
Date: 16 Feb 2007 02:05:20 -0500
Organization: The World : : Since 1989
References: 07-02-024 07-02-029 07-02-037
Keywords: macros, interpreter
Posted-Date: 16 Feb 2007 02:05:20 EST

Allan Adler <> wrote:
>glen herrmannsfeldt <> writes:

>> > Knuths TeX book is an abomination, describing lexing and parsing as
>> > mouth, gullet and stomach nonsense.

>Knuth's TeX Book is a manual for using TeX. It is a wonderful book.
>It is volume A of a 5 volume work whose volumes are:
>A. The TeX Book
>B. TeX the Program
>D. METAFONT the Program
>E. Computer Modern Typefaces

I had no patience for any of these books. On the other hand, The Art of
Programming is excellent.

Anyway, I learned TeX with these:

Rayond Seroul's and Silvio Levy's "A Beginners's Book of TeX"
(ISBN-0-387-97562-4, and ISBN-0-540-97562-4) and David Salomon's "The
Advanced TeXbook" (ISBN-0-387-94556-3).

I made my own preprocessor/format for TeX based on these books. I
remember playing a lot of games with the macro name space. For
example, only a limited character set can be used in macro names, but
I wanted to use any character. I ended up escaping: AA maps to A, AB
maps to backslash, AC to {, etc.

/* AB1GO */ /* Joseph H. Allen */
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}

Post a followup to this message

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