Something is confusing here. It could just be me but ....
In this documentation, there is a line
use TOML; const tomlFile = open("example.toml", iomode.r); const toml = parseToml(tomlFile); const projectName = ["root"]["name"] // returns a TOML object
Firstly, isn;t there a need to add
at the start so that iomode is found.
Also, shouldn't that last line be semi-colon terminated and use the associative array toml as
const projectName = toml["root"]["name"];
Also, noting that the compiler must have been built with the appropriate CHPL_REGEXP option might be useful here.