Skip to content

Add Support for Array #6

@anfsity

Description

@anfsity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions