Updated readme

This commit is contained in:
Rafał
2025-06-22 14:01:03 +09:00
committed by GitHub
parent 8524883791
commit 37289cfad8

View File

@@ -7,8 +7,36 @@ It has been been built on top of LLVM.
## Show me the code!
### Data
### Comments
Like in C, comments can specified using either `\\` which will run until the end of the line or through `/* */` block. However, unlike C, the `/* bla bla /* bla */ */` comments can be also embeded inside each other.
### Literals
**Number literals** can be specified as decimal, hexadecimal, and binary numbers. Digits can be separated by an '_' but it cannot be the first or the last character (otherwise it will get interpreted as and identifier).
```
// Valid examples:
1024
1_024
1.245
1_000.
0xffa
0xffaa_42bb
0b1101
0b1010_0101
// Invalid examples:
_100
1000_.100
0x_fa
0b10_
_0b1101
```
### Control flow
### Functions
### Functions