Re: latex grammar

Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru>
3 Apr 2004 09:01:31 -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: Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru>
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 journey@op.pl 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.