Skip to content

Conversation

@Akuli
Copy link
Owner

@Akuli Akuli commented Mar 19, 2025

#797 added support for compile-time constants. To do that, it introduced AstExpressionType.Constant, which represent an expression whose value is known at compile time.

This PR refactors the compiler to also use AstExpressionType.Constant for integer literals (e.g. 123), True/False and a few other things.

@Akuli Akuli added the skip-release This PR will be excluded from release description and doesn't trigger releasing label Mar 19, 2025
@Akuli Akuli merged commit 41a44e9 into main Mar 19, 2025
21 checks passed
@Akuli Akuli deleted the constant-refactor branch March 19, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release This PR will be excluded from release description and doesn't trigger releasing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants