forlist -> NAME {,NAME} IN explist forbody */
| 325 | |
| 326 | /* forlist -> NAME {,NAME} IN explist forbody */ |
| 327 | void LuaParser::ForList() { |
| 328 | auto m = Mark(); |
| 329 | |
| 330 | NameDefList(); |
| 331 | |
| 332 | CheckAndNext(TK_IN); |
| 333 | |
| 334 | ExpressionList(); |
| 335 | |
| 336 | ForBody(); |
| 337 | |
| 338 | m.Complete(*this, LuaSyntaxNodeKind::ForList); |
| 339 | } |
| 340 | |
| 341 | void LuaParser::ForBody() { |
| 342 | auto m = Mark(); |