Gonna checkpoint here - got basic fungll working, did a mod to allow strings as terminals, working on getting recursion working.

This commit is contained in:
Nathan Braswell
2021-08-05 00:07:44 -04:00
parent 5a61d5f90c
commit c8c876e1bc
5 changed files with 136 additions and 23 deletions

View File

@@ -223,6 +223,9 @@ obj str (Object, Serializable, Hashable) {
r++
}
}
fun operator<(other: ref str): bool {
return *this <= other && *this != other
}
fun operator*(n: int): str {
var to_ret.construct(): str