Skip to content

v0.16.17

@MenkeTechnologies MenkeTechnologies tagged this 06 Jun 03:36
What's in this release:
- 73404ab47b  parser: `for var $x (LIST)` / `for val $x (LIST)` /
  `foreach var $x (LIST)` / `foreach val $x (LIST)` — the loop-variable
  declarator now accepts `var`/`val` alongside `my`, with the same
  contextual-keyword gating used everywhere else (sigil-lookahead
  guard so bare `for var (@xs) {…}` still routes as identifier).
  Four parse-positive pins added to `tests/suite/parse_accepts.rs`;
  `examples/var_val_kotlin_port.stk` Section 2 switched from
  `for my $c (@colors)` to `for var $c (@colors)` so the demo
  exercises the new path.

Verification:
  ./target/debug/stryke -e 'my @c = ("r","g","b"); for var $c (@c) { p "  color: $c" }'
  # color: r / color: g / color: b
  ./target/debug/stryke --no-interop examples/var_val_kotlin_port.stk
  # 7/7 sections green
  cargo test --tests accepts_for_var accepts_for_val accepts_foreach_var accepts_foreach_val
  # 4/4 pass
Assets 2
Loading