Brace expansion using ranges: Difference between revisions
Content added Content deleted
(→{{header|JavaScript}}: Updated primitives) |
(Updated task requirements to be in line with what people are actually doing now.) |
||
Line 54: | Line 54: | ||
{{task heading|Tests}} |
{{task heading|Tests}} |
||
Generate and display here the expansion of (at least) each of the |
Generate and display here the expansion of (at least) each of the ten example lines shown below. |
||
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. |