* Creates a rule to optionally match one or more of the rules separated by a separator * * @param {RuleOrLiteral} sep * * @param {RuleOrLiteral} rule * * @return {ChoiceRule}
(sep, rule)
| 1132 | * @return {ChoiceRule} |
| 1133 | */ |
| 1134 | function sepBy(sep, rule) { |
| 1135 | return optional(sepBy1(sep, rule)); |
| 1136 | } |
| 1137 | |
| 1138 | /** |
| 1139 | * Creates a rule to match one or more of the rules separated by a separator |