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

This commit is contained in:
2023-09-11 14:13:08 +10:00
parent f6d2fc5165
commit 36b574bf5b
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)
}