Logo
Explore Help
Sign In
miloignis/kraken
1
0
Fork 0
You've already forked kraken
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
639f4ff0fb11ce86e6926f15ddfecf4365180352
kraken/tests/test_nosemicolon.krak

10 lines
135 B
Plaintext
Raw Normal View History

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
2015-03-22 22:43:33 -04:00
import io:*
|int| main() {
println("no semicolons!")
if (1 < 2) println("still no!")
println("and again")
return 0
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 22ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API