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:
Nathan Braswell
2015-03-22 22:43:33 -04:00
parent b621107c8e
commit f8e82b5302
4 changed files with 25 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
import io:*
|int| main() {
println("no semicolons!")
if (1 < 2) println("still no!")
println("and again")
return 0
}