Confluent Orthogonal Drawings of Syntax Diagrams
Other Computer Science
2015-09-03 v1 Formal Languages and Automata Theory
Abstract
We provide a pipeline for generating syntax diagrams (also called railroad diagrams) from context free grammars. Syntax diagrams are a graphical representation of a context free language, which we formalize abstractly as a set of mutually recursive nondeterministic finite automata and draw by combining elements from the confluent drawing, layered drawing, and smooth orthogonal drawing styles. Within our pipeline we introduce several heuristics that modify the grammar but preserve the language, improving the aesthetics of the final drawing.
Keywords
Cite
@article{arxiv.1509.00818,
title = {Confluent Orthogonal Drawings of Syntax Diagrams},
author = {Michael J. Bannister and David A. Brown and David Eppstein},
journal= {arXiv preprint arXiv:1509.00818},
year = {2015}
}
Comments
GD 2015