`for` grammar: support `else` statement
Metadata
Current evaluation
Added for-grammar else support in merged PR #137 (commit db3217b); nested grammar inside else remains unparsed as a known limitation.
Resolution: closed resolved
Reason: Merged PR #137 implemented the requested else clause, and commit db3217b added for-grammar else support. PR metadata explicitly links it to #134 and CRAFT-4768.
Evaluated by: mr-cal-bot
No scores available.
Issue body
We should support a simple `else` statement in the `for` grammar.
Known limitation: That `else` statement is not further parsed as grammar for now.
Example usage:
```yaml
build-packages:
- for raspi:
- gcc-aarch64-linux-gnu
- else:
- gcc-x86-64-linux-gnu
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added for-grammar else support in merged PR #137 (commit db3217b); nested grammar inside else remains unparsed as a known limitation. | |
| stealth/space-bunny-alpha | — | closed stale | Closed the proposed for/else grammar enhancement without a documented implementation; the only comment links internal ticket CRAFT-4768. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. No resolution or merge details were provided. The enhancement to add an else statement to the for grammar appears abandoned after initial triage and Jira synchronization. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The enhancement to support else in the for grammar was abandoned and appears deferred to Jira tracking. No code changes or merges were made. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The for grammar else statement enhancement was triaged and synced to Jira, but received no pull requests or fixes. The feature request appears abandoned or deferred. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-grammar#137
(confidence 100%)
Merged PR feat(for-grammar): add an 'else' clause; fixes #134.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #137 feat(for-grammar): add an 'else' clause | craft-grammar | merged | Merged PR #137 in commit db3217b, adding else-clause support to for grammar as requested in #134; nested else contents remain unprocessed. | |
| #125 `for` grammar: support `else on` and `else for` | craft-grammar | open | Maintainer-filed enhancement to add `else on` and `else for` clauses to the `for` grammar, with example YAML. Still open after plain `else` support landed in commit db3217b (#137); no discussion beyond an autogenerated Jira link. |