()
| 33216 | } |
| 33217 | |
| 33218 | function maybe_name() { |
| 33219 | if(token.data === ',' && !(stmt.flags & DECL_ALLOW_COMMA)) { |
| 33220 | return state.shift() |
| 33221 | } |
| 33222 | |
| 33223 | if(token.data === '[') { |
| 33224 | // oh lord. |
| 33225 | state.unshift(quantifier()) |
| 33226 | return |
| 33227 | } |
| 33228 | |
| 33229 | if(token.data === ')') return state.shift() |
| 33230 | |
| 33231 | if(token.data === ';') { |
| 33232 | return stmt.stage + 3 |
| 33233 | } |
| 33234 | |
| 33235 | if(token.type !== 'ident') { |
| 33236 | console.log(token); |
| 33237 | return unexpected('expected identifier, got '+token.data) |
| 33238 | } |
| 33239 | |
| 33240 | stmt.collected_name = tokens.shift() |
| 33241 | return Advance |
| 33242 | } |
| 33243 | |
| 33244 | function maybe_lparen() { |
| 33245 | if(token.data === '(') { |
nothing calls this directly
no test coverage detected