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
544f2919f9ee89d4ea7e7202eb8be02dd3a6614e
kraken/tests/functionOrderingTest.krak

18 lines
154 B
Plaintext
Raw Normal View History

Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented
2014-05-24 14:04:32 -04:00
import io;
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| ret1() {
Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented
2014-05-24 14:04:32 -04:00
return ret2() / 2;
}
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| main() {
Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented
2014-05-24 14:04:32 -04:00
print(ret1());
print(ret2());
print("\n");
return 0;
}
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
|int| ret2() {
Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented
2014-05-24 14:04:32 -04:00
return 2;
}
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