JanssenProject / JanssenProject/jans

feat(agama): add control-flow code-generation conformance tests for the transpiler

Open
#14,426 0 comments 0 reactions 1 assignee Claimed by @imran-ishaq View on GitHub
comp-agama enhancement kind-feature
Dominant language
Java
Stars
647
Forks
173
Avg merge
1d 18h
Merged PRs (30d)
110

Description

**Is your feature request related to a problem? Please describe.**
The Agama transpiler's control-flow constructs (When/Otherwise, Match, Repeat/Quit When, Iterate) are exercised by
syntax-only pass tests, but nothing asserts that they generate the expected JavaScript control structures, so a
code-generation regression could go unnoticed.

**Describe the solution you'd like**
Add a test that transpiles a flow using all the control-flow constructs and asserts the generated code contains the
corresponding JS (conditional, equality-based match branches, counted loop, iteration loop, loop break).

**Describe alternatives you've considered**
Relying on the syntax-only pass tests — rejected: they don't verify code generation.

**Additional context**
Part of the effort to add semantic/spec-conformance coverage to the Agama subsystem; covers the
transpiler/code-generation side of the control-flow constructs (runtime evaluation is exercised by the engine's
end-to-end tests on a deployment).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.