()
| 58156 | } |
| 58157 | |
| 58158 | function parseAlternative() { |
| 58159 | var res = [], |
| 58160 | from = pos; |
| 58161 | var term; |
| 58162 | |
| 58163 | // Alternative :: |
| 58164 | // [empty] |
| 58165 | // Alternative Term |
| 58166 | while (term = parseTerm()) { |
| 58167 | res.push(term); |
| 58168 | } |
| 58169 | |
| 58170 | if (res.length === 1) { |
| 58171 | return res[0]; |
| 58172 | } |
| 58173 | |
| 58174 | return createAlternative(res, from, pos); |
| 58175 | } |
| 58176 | |
| 58177 | function parseTerm() { |
| 58178 | // Term :: |
no test coverage detected