JanssenProject / JanssenProject/jans

feat(agama): add literal-handling conformance tests for the transpiler

Open
#14,422 0 comments 0 reactions 1 assignee View on GitHub

@imran-ishaq is already working on this.

Since Jun 24, 2026.

comp-agama enhancement kind-feature
Dominant language
Java
Stars
648
Forks
174
Avg merge
1d 18h
Merged PRs (30d)
110

Description

**Is your feature request related to a problem? Please describe.**
The Agama language reference defines precise rules for literals (strings and escaping, lowercase booleans, base-10
numbers with no exponential notation, null, lists, maps). There is no test asserting the transpiler accepts the valid
forms and rejects the documented invalid number forms, so a regression in literal parsing could go unnoticed.

**Describe the solution you'd like**
Add a test that transpiles a flow using all valid literal forms and confirms it succeeds, plus a negative check that
invalid number forms (1E-05, .1, -.1, +1) are rejected — pinning the transpiler to the language reference. Register it
in the TestNG suite.

**Describe alternatives you've considered**
Relying on the existing malformed-flow tests — rejected: they don't pin the valid literal forms, so accidental
tightening/loosening of literal parsing wouldn't be caught.

**Additional context**
Part of the effort to add semantic/spec-conformance coverage to the Agama subsystem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.