* 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)
| 1221 | * @return {ChoiceRule} |
| 1222 | */ |
| 1223 | function sepBy(sep, rule) { |
| 1224 | return optional(sepBy1(sep, rule)); |
| 1225 | } |
| 1226 | |
| 1227 | /** |
| 1228 | * Creates a rule to match one or more of the rules separated by a separator |