Skip to content

Commit e43d25e

Browse files
committed
Updated README.md to reflect progress
Added checkmarks to features and updated the example to no longer have a stray `;`.
1 parent 1351b43 commit e43d25e

1 file changed

Lines changed: 36 additions & 28 deletions

File tree

README.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,30 @@ func main: (vessel: Vessel /* Vessel holds vessel data */) -> () {
2222
if ?hi_text { // Not worth printing if its empty
2323
print(hi_text);
2424
}
25-
};
25+
}
2626
```
2727

2828
### Keywords
29-
- `func`: specifies a function or function signature
30-
- `let`: specifies an immutable variable
31-
- `const`: specifies a compile time constant, only allowed in global scope
32-
- `macro`: specifies a compile time macro (code replacement), only allowed in global scope
33-
- `mut`: marks a variable or refrence as mutable
34-
- `return`: returns from a function
35-
- `if`: if-statement
36-
- `else`: else-statement
37-
- `switch`: switch-statement
29+
- [x] `func`: specifies a function or function signature
30+
- [x] `let`: specifies an immutable variable
31+
- [x] `const`: specifies a compile time constant, only allowed in global scope
32+
- [x] `macro`: specifies a compile time macro (code replacement), only allowed in global scope
33+
- [ ] `mut`: marks a variable or refrence as mutable
34+
- [x] `return`: returns from a function
35+
- [x] `if`: if-statement
36+
- [x] `else`: else-statement
37+
- [ ] `switch`: switch-statement
3838

3939
#### Type Keywords
40-
- `i16`
41-
- `i32`
42-
- `f32`
43-
- `f64`
44-
- `bool`
45-
- `byte`
46-
- `str`
47-
- `struct`
48-
- `enum`
40+
- [x] `i16`
41+
- [x] `i32`
42+
- [x] `f32`
43+
- [x] `f64`
44+
- [x] `bool`
45+
- [x] `byte`
46+
- [x] `str`
47+
- [ ] `struct`
48+
- [ ] `enum`
4949

5050
#### Reserved Keywords
5151
These are reserved, there is currently no plan to implement them
@@ -54,17 +54,25 @@ These are reserved, there is currently no plan to implement them
5454
- `import`
5555

5656
### Unary Prefix Operators
57-
- `?`: Logical Operator, Evaluates "truthness" of another type (uses kOS's `OpcodeLogicToBool` in `src/kOS.Safe/Compilation/Opcode.cs`)
58-
- `&`: Refrence
59-
- `*`: Derefrence
60-
- `!`: Logical Not
61-
- `-`: Arithmetic Negation
57+
- [x] `?`: Logical Operator, Evaluates "truthness" of another type (uses kOS's `OpcodeLogicToBool` in `src/kOS.Safe/Compilation/Opcode.cs`)
58+
- [ ] `&`: Refrence
59+
- [ ] `*`: Derefrence
60+
- [x] `!`: Logical Not
61+
- [x] `-`: Arithmetic Negation
6262

6363
### Binary Infix Operators
64-
- `+`: Addition
65-
- `-`: Subtraction
66-
- `*`: Multiplication
67-
- `\`: Division
64+
- [x] `+`: Addition
65+
- [x] `-`: Subtraction
66+
- [x] `*`: Multiplication
67+
- [x] `\`: Division
68+
- [x] `&&`: Boolean And
69+
- [x] `||`: Boolean Or
70+
- [x] `==`: Equality
71+
- [x] `!=`: Inequality
72+
- [x] `>`: Greater than
73+
- [x] `<`: Less than
74+
- [x] `>=`: Greater than or equals
75+
- [x] `<=`: Less than or equals
6876

6977
### Number Literals
7078
Integer and byte literals may begin with `0x` to indicate hexadecimal parsing

0 commit comments

Comments
 (0)