Added initial support for omitting semicolons! (the parser can now interpret either semicolons or linebreaks as the end of statements, but it can still interpret line breaks as white space too, so multi line statements still work.) You will need semicolons to break up multiple statements on the same line, however
This commit is contained in:
9
tests/test_nosemicolon.krak
Normal file
9
tests/test_nosemicolon.krak
Normal file
@@ -0,0 +1,9 @@
|
||||
import io:*
|
||||
|
||||
|int| main() {
|
||||
println("no semicolons!")
|
||||
if (1 < 2) println("still no!")
|
||||
println("and again")
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user