language: add unary plus & minus, post increment & decrement operators, non-newline print builtin. fix block comments (#4)

This commit is contained in:
a dinosaur
2023-09-11 14:34:10 +10:00
committed by GitHub
parent c3afd790b5
commit 8d310e337a
18 changed files with 235 additions and 32 deletions

6
examples/unary.pork Normal file
View File

@ -0,0 +1,6 @@
export func main() {
let constant = -42
println("constant set by unary minus: ", constant)
println("constant modified by unary minus:", -constant)
println("constant modified by unary plus: ", +constant)
}