Skip to content

Conversation

@PTKu
Copy link
Contributor

@PTKu PTKu commented Sep 25, 2025

This pull request introduces support for handling the variables section from the apax.yml file in the AXSharp compiler. The main changes involve adding a new ApaxVariables class to represent build arguments and preprocessor symbols, updating the Apax class to include these variables, and passing the defined preprocessor symbols to the parser during project generation.

Support for apax.yml variables:

  • Added a new ApaxVariables class to represent the variables section in apax.yml, including properties for build arguments (APAX_BUILD_ARGS) and defined preprocessor symbols (DEFINED_PREPROCESSOR_SYMBOLS).
  • Updated the Apax class to include a Variables property, allowing access to the new ApaxVariables section.

Integration of preprocessor symbols in project generation:

  • Modified the AXSharpProject.Generate() method to pass defined preprocessor symbols from ApaxVariables to the parser, enabling conditional compilation based on these symbols.

closes #451

@PTKu PTKu linked an issue Sep 25, 2025 that may be closed by this pull request
Updated the `Generate` method in `AXSharpProject` to include additional parameters for source file parsing, improving context handling. Added a new `Variables` property in the `Apax` class to manage the variables section from `apax.yml`. Introduced the `ApaxVariables` class to organize build arguments and preprocessor symbols effectively.
@PTKu PTKu marked this pull request as ready for review September 25, 2025 16:31
@PTKu PTKu merged commit 7cb91a1 into dev Sep 25, 2025
2 checks passed
@PTKu PTKu deleted the 451-feat-compiler-should-consider-conditional-pragmas branch September 25, 2025 16:32
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.

[FEAT] Compiler should consider conditional pragmas

2 participants