Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8609 +/- ##
==========================================
- Coverage 80.99% 80.98% -0.02%
==========================================
Files 453 453
Lines 62989 63112 +123
==========================================
+ Hits 51020 51113 +93
- Misses 11969 11999 +30
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
cknitt
force-pushed
the
codex/raw-external-arguments
branch
2 times, most recently
from
October 15, 2026 04:22
b936a7e to
18d5799
Compare
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Signed-off-by: Christoph Knittel <ck@cca.io>
Keep comments around and inside fixed arguments, spell integer payloads as plain JavaScript integers, require %raw payloads to be exactly one literal, reject optional fixed arguments clearly, and read legacy @as payloads the same way in the parser, the frontend and the v0 bridge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NP47qMfjMbjUTKZDsLthDo Signed-off-by: Christoph Knittel <ck@cca.io>
cknitt
force-pushed
the
codex/raw-external-arguments
branch
from
October 15, 2026 18:35
18d5799 to
d6388f3
Compare
This was referenced Oct 16, 2026
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduce a dedicated parsetree representation and new syntax for fixed external arguments.
Previously, fixed values were expressed using an
@asattribute on a wildcard type:They can now be written using the familiar
%rawextension syntax:The
%rawpayload must be a string containing a JavaScript literal. Non-interpolated template strings are also supported, which is convenient for JavaScript string values:Compatibility
Existing fixed-value forms continue to parse:
They now:
%raw(...)syntax.The
jsontag no longer has a special string-literal representation in the AST. Outside this compatibility path,jsontemplates behave like ordinary tagged template strings.Implementation
Fixed external arguments are represented explicitly as
Parg_fixed, containing the raw JavaScript source and argument metadata. The representation is handled across AST traversal, mapping, analysis, type checking, external processing, and printing.The frozen v0 parsetree remains unchanged. The existing AST mapping bridge converts fixed arguments to and from a compatible v0 representation.
Testing
Added and updated coverage for:
%rawstring and template-string payloads;make test, syntax tests, and syntax round-trip tests pass.