-- examples/change-setting.lua -- -- Demonstration of changing a setting in Clod -- -- Copyright 2012 Daniel Silverstone -- clod = require "clod" local input_config = [[ project.name "jeff" project.head "refs/heads/jeff" other.thing "here" ]] conf, err = clod.parse(input_config) if not conf then error(err) end conf.settings.project.name = "Clod" conf.settings.project.head = "refs/heads/master" conf.settings.project.description = "Demonstration of settings" conf.settings.other.thing = nil io.stdout:write(conf:serialise())