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

Define Integer Type in AST (Abstract Syntax Tree) #6

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

Define Integer Type in AST (Abstract Syntax Tree) #6

kh3rld opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
ast Abstract syntax tree enhancement New feature or request good first issue Good for newcomers

Comments

@kh3rld
Copy link
Member

kh3rld commented Nov 11, 2024

Implement the structure of the int type within the Abstract Syntax Tree (AST) to ensure that integer literals are recognized and properly parsed.

Tasks:

  • Add an IntNode in the AST to represent integer literals.
  • Update the parser to identify integer tokens and generate IntNode instances.
  • Write unit tests to validate that integer literals are correctly parsed and represented in the AST.

Acceptance Criteria:

  • AST correctly represents integer literals.
  • Unit tests cover both positive and negative integer values.
@kh3rld kh3rld added enhancement New feature or request good first issue Good for newcomers labels Nov 12, 2024
@kh3rld kh3rld added the ast Abstract syntax tree label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Abstract syntax tree enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants