reimplement parsing code (but program does not compile yet because I have to change type of 'USE_SQUARES' constructure)

This commit is contained in:
2025-08-09 11:29:36 +01:00
parent b765e406c7
commit 940e4429a7
5 changed files with 42 additions and 29 deletions

View File

@@ -9,6 +9,9 @@ struct
in NODE {key = minKey, value = grid, left = LEAF, right = LEAF}
end
fun singleton grid =
NODE {key = minKey, value = grid, left = LEAF, right = LEAF}
fun insert (newKey, newValue, tree) =
case tree of
LEAF => NODE {key = newKey, value = newValue, left = LEAF, right = LEAF}