DrawGrammar

Draw railroad diagrams of your EBNF grammar. DrawGrammar is also available as a command-line tool.

Grammar

Transformations

Drawing

Absolute sizes

Relative sizes

Examples

Arithmetics

The language of additions, subtractions, multiplications and divisions on integers, with parentheses.

@todo Inline instead of loading special file

JSON

As described on json.org.

Python

As defined by this grammar.

OCaml

As defined by this reference manual.

Computing, please wait...

There is an error in the grammar you're trying to draw:

Is the appropriate syntax selected for your grammar? Don't hesitate to open an issue if this message is not helpful. Please include the part of your grammar that produces the error and explain how you finally understood what's wrong. We'll try to improve the message based on your feedback.