Skip to content

Commit 5951b8f

Browse files
authored
add code format to parameter references table definitions (fixes common-workflow-language/cwl-v1.2#206) (#209)
1 parent ebb9aa6 commit 5951b8f

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

concepts.md

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -499,21 +499,45 @@ references use the following subset of
499499
syntax, but they are designed to not require a Javascript engine for evaluation.
500500

501501
In the following [BNF grammar](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form),
502-
character classes and grammar rules are denoted in '{}', '-' denotes
503-
exclusion from a character class, '(())' denotes grouping, '|' denotes
504-
alternates, trailing '*' denotes zero or more repeats, '+' denote one
502+
character classes and grammar rules are denoted in `{}`, `-` denotes
503+
exclusion from a character class, `(())` denotes grouping, `|` denotes
504+
alternates, trailing `*` denotes zero or more repeats, `+` denotes one
505505
or more repeats, and all other characters are literal values.
506506

507-
<p>
507+
<div>
508508
<table class="table">
509-
<tr><td>symbol:: </td><td>{Unicode alphanumeric}+</td></tr>
510-
<tr><td>singleq:: </td><td>[' (( {character - { | \ ' \} } ))* ']</td></tr>
511-
<tr><td>doubleq:: </td><td>[" (( {character - { | \ " \} } ))* "]</td></tr>
512-
<tr><td>index:: </td><td>[ {decimal digit}+ ]</td></tr>
513-
<tr><td>segment:: </td><td>. {symbol} | {singleq} | {doubleq} | {index}</td></tr>
514-
<tr><td>parameter reference::</td><td>$( {symbol} {segment}*)</td></tr>
509+
<tr>
510+
<td><code>symbol</code></td>
511+
<td><code>::=</code></td>
512+
<td><code>{Unicode alphanumeric}+</code></td>
513+
</tr>
514+
<tr>
515+
<td><code>singleq</code></td>
516+
<td><code>::=</code></td>
517+
<td><code>[' (( {character - { | \ ' \} } ))* ']</code></td>
518+
</tr>
519+
<tr>
520+
<td><code>doubleq</code></td>
521+
<td><code>::=</code></td>
522+
<td><code>[" (( {character - { | \ " \} } ))* "]</code></td>
523+
</tr>
524+
<tr>
525+
<td><code>index</code></td>
526+
<td><code>::=</code></td>
527+
<td><code>[ {decimal digit}+ ]</code></td>
528+
</tr>
529+
<tr>
530+
<td><code>segment</code></td>
531+
<td><code>::=</code></td>
532+
<td><code>. {symbol} | {singleq} | {doubleq} | {index}</code></td>
533+
</tr>
534+
<tr>
535+
<td><code>parameter reference</code></td>
536+
<td><code>::=</code></td>
537+
<td><code>( {symbol} {segment}*)</code></td>
538+
</tr>
515539
</table>
516-
</p>
540+
</div>
517541

518542
Use the following algorithm to resolve a parameter reference:
519543

0 commit comments

Comments
 (0)