(min, max, from, to)
| 58035 | } |
| 58036 | |
| 58037 | function createQuantifier(min, max, from, to) { |
| 58038 | if (to == null) { |
| 58039 | from = pos - 1; |
| 58040 | to = pos; |
| 58041 | } |
| 58042 | |
| 58043 | return addRaw({ |
| 58044 | type: 'quantifier', |
| 58045 | min: min, |
| 58046 | max: max, |
| 58047 | greedy: true, |
| 58048 | body: null, // set later on |
| 58049 | range: [from, to] |
| 58050 | }); |
| 58051 | } |
| 58052 | |
| 58053 | function createAlternative(terms, from, to) { |
| 58054 | return addRaw({ |
no test coverage detected