Reputation: 27312
Docbook 5 apparently supports EBNF. But it doesn't output a railroad diagram. Is it possible to make it output a railroad diagram (AKA syntax diagram)?
Upvotes: 0
Views: 539
Reputation: 51012
The DocBook schema includes XML elements for representing EBNF production rules, and HTML/FO output can be generated using the DocBook XSL stylesheets. However, there is no direct support for producing railroad diagrams. There are tools for creating railroad diagrams from plaintext EBNF sources, but I am not aware of any programs that do the same based on DocBook EBNF markup.
Upvotes: 1