adding some hcl code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
hyung-hwan 2024-07-05 00:53:37 +09:00
parent 86ea4e7071
commit 36b83c63e7

30
src/kernel.hcl Normal file
View File

@ -0,0 +1,30 @@
class Object {
}
class Collection: Object {
}
class IndexedCollection: Collection {
}
class FixedSizedCollection: Collection {
}
class Array: FixedSizedCollection {
}
class String: Array {
}
fun Collection:length() {
return (arr.length self)
}
fun Collection:slice(index count) {
return (arr.slice self index count)
}
printf "string length %d\n" ("aaaa":length)