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

@@ -207,6 +207,16 @@ obj vec<T> (Object, Serializable) {
return false
return true
}
fun operator< <U>(other: ref vec<U>):bool {
if (size < other.size)
return true
if (size > other.size)
return false
for (var i = 0; i < size; i++;)
if (data[i] < other.data[i]) // it's !(==) because we want equality if our members are equal, and overloading etc
return true
return false
}
fun set(index: int, dataIn: ref T): void {
if (index < 0 || index >= size)