Skip to content

Support while keyword in rt.postgres grammar#256

Merged
hoebat merged 1 commit intomainfrom
jules/rt-postgres-while-2853174932864141328
Jan 13, 2026
Merged

Support while keyword in rt.postgres grammar#256
hoebat merged 1 commit intomainfrom
jules/rt-postgres-while-2853174932864141328

Conversation

@google-labs-jules
Copy link
Contributor

Implemented while loop support for the rt.postgres DSL. This allows (while (condition) ...) forms to be correctly compiled into WHILE condition LOOP ... END LOOP; SQL statements. This required updating the grammar definition, adding a new form transformer, and implementing the emission logic. Existing tests pass, and a new test case verifies the transformation.


PR created automatically by Jules for task 2853174932864141328 started by @zcaudate

- Registered `:while` op in `rt.postgres.grammar/+features+`.
- Added `pg-while-block` in `rt.postgres.grammar.form-let` to handle AST transformation.
- Added `block-while-block` in `rt.postgres.grammar.common` to emit PL/pgSQL `WHILE ... LOOP ... END LOOP;`.
- Added unit test in `rt.postgres.grammar.form-let-test`.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@hoebat hoebat marked this pull request as ready for review January 13, 2026 12:58
@hoebat hoebat merged commit 0882a84 into main Jan 13, 2026
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments