Skip to content

Conversation

@MisakaVan
Copy link
Owner

This pull request introduces several changes to improve identifier handling in the codebase. The most important changes include the addition of new functions for registering and checking identifiers, updates to existing functions to incorporate these new checks, and the addition of new test cases to validate the changes.

Improvements to identifier handling:

  • src/lang.c: Added calls to register_identifier_* and check_identifier_* functions in various type-related functions to ensure proper registration and validation of identifiers. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • src/lib.c: Introduced new functions for registering and checking identifiers, including register_identifier, register_identifier_variable, register_identifier_enumerator, register_identifier_struct, register_identifier_union, register_identifier_enum, register_identifier_typedef, and corresponding check_identifier_* functions.
  • src/lib.h: Added new enums and structs to support the identifier registration and checking logic, including enum IdentifierType and struct IdentifierInfo. Also added function declarations for the new identifier handling functions.

Test cases:

Documentation and other changes:

  • readme.md: Updated the checklist to reflect the completion of tasks related to checking identifiers in global declarations and ensuring proper pre-definition.
  • src/main.c: Initialized the identifier table in the main function to support the new identifier handling logic. [1] [2]
  • src/lang.c: Included lib.h to access the new identifier handling functions.

@MisakaVan MisakaVan merged commit 30a92d3 into main Dec 13, 2024
1 check passed
@MisakaVan MisakaVan deleted the dev branch December 13, 2024 18:46
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.

2 participants