Feature Request: Array Support
Background:
This project requires adding support for one-dimensional arrays. The goal is to enable correct parsing and handling of arrays with multiply dimensions in the compiler, covering declaration, assignment, and element access.
Scope:
- Support parsing array declarations like
int a[10];
- Ensure array element access works in expressions and statements
- Handle semantic checks related to array bounds and type safety
Approach:
- Update the grammar rules to allow multi-dimensional array syntax
- Update symbol table logic to store array information
- Make type checks for index expressions and assignments
- Implement code generation for array access
Feature Request: Array Support
Background:
This project requires adding support for one-dimensional arrays. The goal is to enable correct parsing and handling of arrays with multiply dimensions in the compiler, covering declaration, assignment, and element access.
Scope:
int a[10];Approach: