Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Up Integer Constants and Variable Storage #10

Open
3 tasks
kh3rld opened this issue Nov 12, 2024 · 0 comments
Open
3 tasks

Set Up Integer Constants and Variable Storage #10

kh3rld opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kh3rld
Copy link
Member

kh3rld commented Nov 12, 2024

Implement functionality for storing and retrieving integer values in variables, allowing users to assign int values to variables.

Tasks:

  • Define syntax and parser rules for variable declarations with int values.
  • Implement storage and retrieval methods for integer values in the interpreter’s environment.
  • Add unit tests for variable assignment and retrieval, covering redeclaration errors.

Acceptance Criteria:

  • Variables can be declared, assigned integer values, and retrieved accurately.
  • Errors are returned when redeclaring or reassigning values to incompatible types.
@kh3rld kh3rld added enhancement New feature or request good first issue Good for newcomers labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants