Re: latex grammar

haberg@matematik.su.se (Hans Aberg)
3 Apr 2004 09:06:44 -0500

          From comp.compilers

Related articles
latex grammar journey@op.pl (Lukasz) (2004-03-26)
Re: latex grammar boldyrev+nospam@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2004-04-03)
Re: latex grammar dmaze@mit.edu (David Z Maze) (2004-04-03)
Re: latex grammar haberg@matematik.su.se (2004-04-03)
Re: latex grammar gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-04-03)
Re: latex grammar bonzini@gnu.org (2004-04-03)
Re: latex grammar theo@engr.mun.ca (Theodore Norvell) (2004-04-14)
Re: latex grammar James.Leifer@inria.fr (James Leifer) (2004-04-14)
| List of all articles for this month |
From: haberg@matematik.su.se (Hans Aberg)
Newsgroups: comp.compilers,comp.compilers.tools.javacc
Date: 3 Apr 2004 09:06:44 -0500
Organization: Mathematics
References: 04-03-099
Keywords: parse
Posted-Date: 03 Apr 2004 09:06:43 EST

"Lukasz" <journey@op.pl> wrote:


>Where can I find grammar for latex so I can create parser?
>Thanks for any advices.


You can answers from the LaTeX mailing list (send an empty mail or one
with the only word "info" in the body to
<LISTSERV@LISTSERV.UNI-HEIDELBERG.DE>).


From what recall, though, so did Leslie Lamport, who made the original
LaTeX, base the LaTeX grammar on the Pascal grammar, but as TeX does
not know how it and for other reasons, it has never been published. I
also think that the current LaTeX development team does not use an
explicit grammar for the further development of LaTeX. One really
needs a new TeX, with capability of checking grammars for that to make
sense.


So there is no guarantee that such a grammar will work parsing LaTeX. But
there might be some partial LaTeX grammars around.


    Hans Aberg


Post a followup to this message

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