Ebnf2ps: Peter's Syntax Diagram Drawing Tool

[ bsd3, language, program ] [ Propose Tags ] [ Report a vulnerability ]

Ebnf2ps generates nice looking syntax diagrams in EPS and FIG format from EBNF specifications and from yacc, bison, and Happy input grammars. The diagrams can be immediatedly included in TeX/LaTeX documents and in texts created with other popular document preparation systems.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15
Change log CHANGES
Dependencies array, base (<5), containers, directory, old-time, unix [details]
Tested with ghc ==7.4.2, ghc ==7.6.2, ghc ==7.6.3, ghc ==7.8.1, ghc ==7.8.2, ghc ==7.8.3, ghc ==7.8.4, ghc ==7.10.1, ghc ==7.10.2
License BSD-3-Clause
Copyright 1993-2014
Author Peter Thiemann <thiemann@acm.org>
Maintainer Franklin Chen <franklinchen@franklinchen.com>
Category Language
Home page https://github.com/FranklinChen/Ebnf2ps
Bug tracker https://github.com/FranklinChen/Ebnf2ps/issues
Source repo head: git clone https://github.com/FranklinChen/Ebnf2ps
Uploaded by FranklinChen at 2015-08-26T20:23:45Z
Distributions LTSHaskell:1.0.15, NixOS:1.0.15, Stackage:1.0.15
Reverse Dependencies 1 direct, 0 indirect [details]
Executables ebnf2ps
Downloads 8542 total (41 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-10-25 [all 15 reports]

Readme for Ebnf2ps-1.0.15

[back to package description]

Ebnf2ps

Build Status

Ebnf2ps generates nice looking syntax diagrams in EPS and FIG format from EBNF specifications and from yacc, bison, and Happy input grammars. The diagrams can be immediatedly included in TeX/LaTeX documents and in texts created with other popular document preparation systems.

Usage

The latest version of the manual is available in doc.pdf.

Two environment variables may need to be set:

  • Find out where your TeX installation stores .afm-files (Adobe font metric files). Then set the environment variable AFMPATH when running the program. The .afm-files are absolutely necessary. If you don't find them complain to your system administrator or get them yourself. One possible source is here.

  • Set the environment variable RGBPATH to contain the directory where your X installation stores its color data base (usually /usr/lib/X11). There are fallback color definitions for the 8 digital colors (black, white, blue, green, cyan, red, magenta, yellow), so nothing needs be done if that's enough for you.

    Note: for Mac OS X, the default /opt/X11/share/X11 has been provided and will work automatically, if you have installed X using XQuartz.

Notes

With Peter Thiemann's permission, I am now maintaining this package, starting with version 1.0.12.

I first used this software in 1995 (!), so it was a nostalgia trip finding it again in 2014 and reviving it. PostScript is no longer in fashion, but one can still use this tool and then convert PostScript to PDF.