sapling/lib/configparser
Jun Wu 0b39ff42d9 configparser: implement basic parsing
Summary:
Handling sections and normal config items. `%` support will be added in an
upcoming patch.

Note: regex would make the code simpler - the expression
`^([^\s=]+)\s*=\s*(.*(?:\n[\t ].*)*)\s*` can extract both config name and
multi-line values. However a naive benchmark shows it is 20x slower parsing
larger files, and it has some initialization cost. Config parsing is at such
a low level and its performance is critical. So the code does its own
parsing instead of using regex.

Reviewed By: mitrandir77

Differential Revision: D8779051

fbshipit-source-id: a2de698f0676c886737c47891a0400f187bff822
2018-07-16 19:57:36 -07:00
..
src configparser: implement basic parsing 2018-07-16 19:57:36 -07:00
Cargo.toml configparser: add a new Rust library 2018-07-11 17:36:06 -07:00