3
votes
1answer
94 views

How to change font-size for a grammar declaration

I have a grammar declaration like this: \documentclass[12pt,a4paper]{report} \usepackage{syntax} \begin{document} ... \begin{figure}[h!] \begin{grammar} <A> ::= `<--' ...
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.
5
votes
2answers
432 views

lineno and syntax package incompatibilities

I'm using the syntax package from the mdwtools version 1996/05/17 1.07. I successfully set the properties to show a grammar definition properly but then when I try to combine it with the lineno ...