Circular dependency from List -> String -> List hinders implementation of List.to_string (maybe that's why the standard library doesn't have it?). I decided to cut off the dependency String -> List, since List.to_string must use String module.
I didn't put to_string functions for temp_func into Pretty module, since I plan to hide the representation of datatypes in X86 later, since no more downstream modules would use it any further (it's the end of our compiler pipeline).
Things worth noting:
List -> String -> List
hinders implementation ofList.to_string
(maybe that's why the standard library doesn't have it?). I decided to cut off the dependencyString -> List
, sinceList.to_string
must useString
module.to_string
functions fortemp_func
intoPretty
module, since I plan to hide the representation of datatypes inX86
later, since no more downstream modules would use it any further (it's the end of our compiler pipeline).