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

Support conditionals #9

Open
Maxcode123 opened this issue Aug 12, 2023 · 0 comments
Open

Support conditionals #9

Maxcode123 opened this issue Aug 12, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Maxcode123
Copy link
Owner

Maxcode123 commented Aug 12, 2023

Support conditional statements (if-else).

  1. Add production rules in grammar (src/syntax/classical.y)
  2. Define AST nodes for conditional statements in src/syntax/ast/nodes.h
  3. Implement build methods in src/syntax/ast/builder.h
  4. Write unit tests for build methods (tests/unit/ast/test_builder.cpp)
  5. Call build methods on production rule actions (src/syntax/classical.y)
  6. Write integration test for parser (tests/integration/syntax/test_parser.cpp)
@Maxcode123 Maxcode123 added the enhancement New feature or request label Aug 12, 2023
@Maxcode123 Maxcode123 added this to the Compiler v2 milestone Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant