21
votes
1answer
330 views

Are the TeX semantics and grammar defined somewhere in some official documents?

I'm a programmer, I would like to take a look at a more technical and specific definition of what is referred to as LaTeX or TeX. My interest in on syntax, semantics, and the grammar of this language ...
12
votes
3answers
6k views

Which package can be used to write BNF grammars?

I googled and found two packages: mdwtools bnf Unfortunately, both of them have extremely poor documentation. There are only one to two examples for each one, which makes it hard to follow. ...
6
votes
2answers
1k views

Is there a LaTeX package to format computer language grammars?

I need to display BNF grammars, but couldn't find any LaTeX package that does this.