diff --git a/README.md b/README.md index 3e1a870..89f7fe0 100644 --- a/README.md +++ b/README.md @@ -147,16 +147,15 @@ This is what generates expressions from tokens. ### Operators -- [x] `=` -- [x] `+`, `-`, `*`, `/` -- [x] `+=`, `-=`, `*=`, `/=` -- [x] `==`, `!=`, `<`, `<=`, `>`, `>=` -- [x] `&&`, `||` -- [ ] `%` -- [ ] `<<`, `>>` -- [ ] `<<=`, `>>=` +- [x] `=`, `:=` +- [x] `+`, `-`, `*`, `/`, `%` +- [x] `+=`, `-=`, `*=`, `/=`, `%=` - [ ] `&`, `|`, `^` - [ ] `&=`, `|=`, `^=` +- [ ] `<<`, `>>` +- [ ] `<<=`, `>>=` +- [x] `==`, `!=`, `<`, `<=`, `>`, `>=` +- [x] `&&`, `||` ### Architecture diff --git a/tests/programs/remainder.q b/tests/programs/remainder.q index 392c6c8..2bbe4f5 100644 --- a/tests/programs/remainder.q +++ b/tests/programs/remainder.q @@ -29,7 +29,16 @@ main() { sys.exit(1) } - if 256 % 10 != 6 { + x := 256 + x %= 100 + + if x != 56 { + sys.exit(1) + } + + x %= 10 + + if x != 6 { sys.exit(1) }