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

Add support for basic arithmetic operations #38

Open
8 tasks
tjhancocks opened this issue May 21, 2019 · 0 comments
Open
8 tasks

Add support for basic arithmetic operations #38

tjhancocks opened this issue May 21, 2019 · 0 comments
Labels
compiler An issue relating to the compiler enhancement New feature or request language An issue or pull request covering the language itself.
Milestone

Comments

@tjhancocks
Copy link
Owner

The Feature

Currently the language has no means of performing basic arithmetic operations. This makes it extremely limiting. There needs to be support for the basic arithmetic operations added into the language.

What needs to be done?

In order to implement this in the language a concept of prefix, postfix and infix operations need to be added to the language as either unary and binary operations. In addition to this support for precedence levels between operations needs to be added, along with the appropriate semantic analysis, optimisation and code generation.

Checklist

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Modulo
  • Increment
  • Decrement
  • Operation precedence levels
@tjhancocks tjhancocks added enhancement New feature or request compiler An issue relating to the compiler language An issue or pull request covering the language itself. labels May 21, 2019
@tjhancocks tjhancocks added this to the v0.0.2 milestone May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler An issue relating to the compiler enhancement New feature or request language An issue or pull request covering the language itself.
Projects
None yet
Development

No branches or pull requests

1 participant