On Mon, Mar 27, 2000 at 03:07:32AM -0800, Kayvan A. Sylvan wrote:
> Hi everyone,
>
> Is there a complete LALR grammar description for TeX or LaTeX files?
a) I've never heard of one
b) I'm pretty sure it's not an LALR language. It's context dependent
and is capable of modifying it's own syntax. I think it is
probably technical impossible to parse without actually executing
the macros. I.e. you need a TeX state machine to parse it in full
generality.
'well-behaved' LaTeX is probably LALR, though.
Jules
--
Jules Bean | Any sufficiently advanced
jules@{debian.org,jellybean.co.uk} | technology is indistinguishable
[EMAIL PROTECTED] | from a perl script