Parses a configuration file with keywords followed by arguments,
separated by a space. An example of a file in this format is the
sshd_config
file.
The parser in this library strips out comments, and normalizes
whitespace. It includes a binary, keyword-args
, which reads from
STDIN and emits a CSV file with two columns, containing the keyword
followed by the values.
Send input to STDIN, and the output will be a CSV with comments stripped and with unnecessary whitespace removed.
$ printf "#Testing\nkeyword a bunch of values #comment" | keyword-args
keyword,"a bunch of values"
This project exposes a library that is usable from Haskell programs for extracting data from input in Keyword-Argument format.
Justin Leitgeb
MIT
(C) 2015 Stack Builders Inc.