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
e364b00cc9fb39cfa678066195ad99a7552fdb30
kraken/tests/to_parse.krak

14 lines
237 B
Plaintext
Raw Normal View History

Made a test_runner in Kraken to run the tests on Kalypso, and moved to_import.krak to simple_print.krak and ported one function over to use it instead, so that Kalypso testing can get started before implementing everything needed to use io.krak
2016-02-05 04:30:34 -05:00
import simple_print: *
Implemented function values when type inferenced (not explicit types or lambdas)
2016-02-20 21:02:41 -05:00
fun print_and_return(data: int): int {
println(data)
return data
Object templates starting to work, don't do methods properly yet, likely all have the same name
2016-02-13 16:56:37 -05:00
}
Added indirection to types in prep for function calls, full passthrough, and the first real hello world
2016-01-10 18:26:31 -05:00
fun main(): int {
Added in explicit types for function values
2016-02-20 22:14:39 -05:00
var v: fun(int):int
v = print_and_return
println(v(7))
Implemented function values when type inferenced (not explicit types or lambdas)
2016-02-20 21:02:41 -05:00
// println(print_and_return(7))
return 0
Added indirection to types in prep for function calls, full passthrough, and the first real hello world
2016-01-10 18:26:31 -05:00
}
Fixed the parse bug. I think it's legal for the post-shift table check to be invalid and you have to account for that in the table
2015-12-26 01:52:29 +00:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 32ms 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