Re: latex grammar

Ivan Boldyrev <>
3 Apr 2004 09:01:31 -0500

          From comp.compilers

Related articles
latex grammar (Lukasz) (2004-03-26)
Re: latex grammar (Ivan Boldyrev) (2004-04-03)
Re: latex grammar (David Z Maze) (2004-04-03)
Re: latex grammar (2004-04-03)
Re: latex grammar (glen herrmannsfeldt) (2004-04-03)
Re: latex grammar (2004-04-03)
Re: latex grammar (Theodore Norvell) (2004-04-14)
Re: latex grammar (James Leifer) (2004-04-14)
| List of all articles for this month |

From: Ivan Boldyrev <>
Newsgroups: comp.compilers
Date: 3 Apr 2004 09:01:31 -0500
Organization: this field is intentionally left blank
References: 04-03-099
Keywords: parse
Posted-Date: 03 Apr 2004 09:01:31 EST

On 8696 day of my life wrote:
> Hello
> Where can I find grammar for latex so I can create parser?
> Thanks for any advices.

LaTeX is based on TeX, which doesn't have contex-free grammar, because
you can change class of every simbol during processing. And packages
can introduce own sublanguages (for example, XY-pic).

Of course, you can limit your tool to "standard" syntax and ignore
such featuers. Then task of creating a grammar is homework-like :)

Ivan Boldyrev

                                              Perl is a language where 2 x 2 is not equal to 4.

Post a followup to this message

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