|
From: J. L. T. <jlt...@ma...> - 2014-08-09 16:36:08
|
On Tuesday 29 July 2014 19:55:05 David Ashley wrote: > I found a good generator on the web at http://bottlecaps.de/rr/ui. It > takes an ebnf syntax and generates really nice railroad diagrams. To > give you an idea of how they look I have put together an ebnf of the > ooRexx BIFs that you can submit to the web site. The diagrams can be > downloaded and I can insert them into the Reference document (once the > ebnf has been checked). This generator does not seem to have any provision for expressing default values; am I missing something? For example, the diagram for the strip() function ought to look like | ┌,─Both──────,─' '───────┐ | ▶▶─strip(─string┼────────────────────────┼)─;─────────▶◀ | └,┬Leading─┬┬───────────┬┘ | └Trailing┘└,─character┘ but there doesn't seem to be anything in the generator's grammar to express such a default value. -- A Caution to Everybody Consider the Auk; Becoming extinct because he forgot how to fly, and could only walk. Consider man, who may well become extinct Because he forgot how to walk and learned how to fly before he thinked. -- Ogden Nash |