Skip to content

Unify printers, reintroduce localisation in printing of values#1031

Merged
vincent-botbol merged 21 commits into
masterfrom
printersunited
Jun 2, 2026
Merged

Unify printers, reintroduce localisation in printing of values#1031
vincent-botbol merged 21 commits into
masterfrom
printersunited

Conversation

@AltGr

@AltGr AltGr commented May 13, 2026

Copy link
Copy Markdown
Contributor

Still to be done for Python and C ; and Java supports the localisation but has a slightly different formatting at the moment.

Edit: done ; the Java backend outputs normalised field / constructor names because it uses introspection only, but that will require some more info and is the only diff

The reference value printer is now in the runtime, and the "UserFacing" printer of values in the compiler calls to it, removing the code duplication.

Don't forget to merge in sync:
LSP related PR: CatalaLang/catala-language-server#231
catala-examples: CatalaLang/catala-examples#43

AltGr added 2 commits June 1, 2026 11:16
also ensure consistent formatting with the other backends, and reintroduce localised printing
@AltGr AltGr force-pushed the printersunited branch from 8e4c98c to c4c1a04 Compare June 1, 2026 09:16
@AltGr AltGr force-pushed the printersunited branch from e4609c3 to 3a44675 Compare June 1, 2026 16:30
@vincent-botbol vincent-botbol merged commit e9501a8 into master Jun 2, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Catala - language & tooling Jun 2, 2026
@vincent-botbol vincent-botbol deleted the printersunited branch June 2, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants