5a947403创建于 2024年11月1日历史提交
// DEPENDENCE: arrayoftables001.toml
// DEPENDENCE: arrayoftables002.toml
// EXEC: cjc %import-path %L %l %f
// EXEC: ./main

import toml4cj.decoders.*
import std.posix.*

main() {
    var path2: String = getcwd()
    var arr: Array<String> = [
        "${path2}/arrayoftables001.toml" , 
        "${path2}/arrayoftables002.toml"
        ]
    let decoder: Decoder = Decoder()
    try {
        for(i in 0..arr.size) {
            decoder.load(arr[i])
        }
    }catch (e: Exception) {
        return 1
    }
    return 0
}