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 conditionals #9

Open
3 tasks
BLM16 opened this issue Feb 27, 2022 · 0 comments
Open
3 tasks

Add conditionals #9

BLM16 opened this issue Feb 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@BLM16
Copy link
Member

BLM16 commented Feb 27, 2022

  • if statements
  • else if statements
  • else statements

Boolean expressions that determine whether or not to run the code should not require parentheses, however they should be optional. expression contains a nested '(' expression ')' already.

if_statement: 'if' expression code_block

Potentially add an inline syntax similar to

if_statement: 'if' expression (code_block | 'then' statement)

if number == 37 {
    do_something();
}

if number == 37 then do_something();
@BLM16 BLM16 added the enhancement New feature or request label Feb 27, 2022
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
Status: Todo
Development

No branches or pull requests

1 participant