submodules: [] imports: [] functions: - - main - arguments: [] cards: # --- init the example table --- - !SetVar name: t value: !CreateTable - !SetProperty - !ScalarInt 3 - !ReadVar t - !StringLiteral f1 - !SetProperty - !ScalarInt 5 - !ReadVar t - !StringLiteral f2 - !SetProperty - !ScalarInt 7 - !ReadVar t - !StringLiteral f3 - !SetGlobalVar name: g_result value: !ScalarInt 0 # --- init done --- - !ForEach k: key body: !CompositeCard ty: "" cards: - !ReadVar t - !ReadVar key - !Call function_name: pog args: [] iterable: !ReadVar t - - pog - arguments: - "key" - "table" cards: - !SetGlobalVar name: g_result value: !Add - !CompositeCard ty: "" cards: - !GetProperty - !ReadVar table - !ReadVar key - !ReadVar g_result