Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaTeX BNF

165 views
Skip to first unread message

Chris Cliffe

unread,
Feb 2, 1998, 3:00:00 AM2/2/98
to

I am a final year student at Coventry University and am undertaking a
project to produce a LaTeX Editor (I know such things exist, but the
project is a learning exercise).

As part of the editor, a parser will parse the LaTeX file to detect any
errors in the syntax. I am therefore trying to find a BNF (Backus-Naur
Form) description of the LaTeX syntax.

Thanks for any help,
Chris Cliffe
BSc Computer Science, Stage 4.

---------------------------------------------------------------------------
Christian Cliffe Email: ccl...@coventry.ac.uk
---------------------------------------------------------------------------


Victor Wagner

unread,
Feb 4, 1998, 3:00:00 AM2/4/98
to

Chris Cliffe (ccl...@coventry.ac.uk) wrote:
: I am a final year student at Coventry University and am undertaking a
: project to produce a LaTeX Editor (I know such things exist, but the
: project is a learning exercise).

: As part of the editor, a parser will parse the LaTeX file to detect any
: errors in the syntax. I am therefore trying to find a BNF (Backus-Naur
: Form) description of the LaTeX syntax.

I don't think that BNF is a good way to express TeX syntax.
There is almost no grammar, and grammar is what are BNF for.

It sounds much like "Tcl BNF, m4 BNF or Forth BNF"

Try to get some existing TeX checker (there are several on CTAN) and
adopt for your project. Or write a parser directly from what is given
in TeXbook.

: Thanks for any help,


: Chris Cliffe
: BSc Computer Science, Stage 4.

: ---------------------------------------------------------------------------
: Christian Cliffe Email: ccl...@coventry.ac.uk
: ---------------------------------------------------------------------------

--
--------------------------------------------------------
I have tin news and pine mail...
Victor Wagner @ home = vitus @ orc . ru

0 new messages