Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Implement operator modifiers #19

Open
Bravotic opened this issue May 28, 2022 · 0 comments
Open

Implement operator modifiers #19

Bravotic opened this issue May 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Bravotic
Copy link
Member

Basically since Blæst is a single typed language, some things need to be inferred, some need to be explicitly stated. Using these operator modifiers, a single character, either f for floating point, s for signed, and u for unsigned can be applied to comparison (<, >) or arithmetic (+, -, *, /) operators to make those operators use appropriate opcode for translation. By default u is implied, so using it is only for clarification.

Examples:
x = 0.5 f+ 0.5;
if(-1 s< 5){

@Bravotic Bravotic added the enhancement New feature or request label May 28, 2022
@Bravotic Bravotic self-assigned this May 28, 2022
@Bravotic Bravotic added this to the Blæst Version 0.3 milestone May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant