fault.text

Parse the text file from standard input and serialize the element tree into standard output.

The format of the output is designated using the first argument: print, json.

sys
import

importlib
import

process
import

txt
import

formats
data

formats = {
	'json': ('json', (lambda m,f,a: m.dump(a, f))),
	'print': ('pprint', (lambda m,f,a: f.write(m.pformat(a)))),
}

main
function
process.Exit

main(inv)