This is a collection of How To's to help you when changing ooRexx documentation.
Since ooRexx 5.0 all docs use new graphical railroad syntax diagrams. Instead of the previous inlined ASCII character diagrams, the new graphical syntax diagrams are included Scalable Vector Graphics (SVG) images. We're generating these SVG images with the help of a web-based tool called Railroad Diagram Generator (RDG).
RDG accepts input in an EBNF-format and generates SVG images packed into an XHTML file.
RDG is not a one-to-one replacement for the previous ASCII character diagrams—it does not provide all forms of use that these diagrams showed.
To generate the SVG images, follow these steps:
.ebnf
file).xhtml
into the same directory as the .ebnf
fileThe downloaded XHTML file contains all diagrams as embedded SVG's, so there's some post-processing necessary
.svg
file,font-style: italic;
to each SVG's CSS text.nonterminal {
…}
definition (which makes function/method arguments italic), andThe post-processing tool, ebnfXHTML.rex
, can be found in sandbox/erich/docs/tools/.
Download ebnfXHTML.rex, and run it in the directory containing the .xhtml
and the .svg
files. It will compare all existing .svg
files against the SVG images embedded in the .xhtml
file and list all changes it finds, but without making any changes to the actual files yet. Check that the reported changes are correct and run again ebnfXHTML --write
to write the changes.
Note that you should svn add
any newly created .svg
files, so that they get synced into the repository upon the next svn ci
.
funct_xmp ::= function_name '(' expression? (',' expression?)* ')'