Brace expansion using ranges: Difference between revisions

Content added Content deleted
(→‎Task: + 'at least')
Line 54: Line 54:
{{task heading|Tests}}
{{task heading|Tests}}


Generate and display here the expansion of each of the nine example lines shown above.
Generate and display here the expansion of (at least) each of the nine example lines shown above.


The JavaScript implementation below uses parser combinators, aiming to encode a more or less full and legible description of the <pre><PREAMBLE><AMBLE><POSTSCRIPT></pre> range brace grammar, but you should use any resource that suggests itself in your language, including parser libraries.
The JavaScript implementation below uses parser combinators, aiming to encode a more or less full and legible description of the <pre><PREAMBLE><AMBLE><POSTSCRIPT></pre> range brace grammar, but you should use any resource that suggests itself in your language, including parser libraries.