Round-trip parsing of data structure format (YAML or whatnot) preserving comments, for writing configuration

后端 未结 3 988
迷失自我
迷失自我 2021-02-13 21:16

I have been using YAML as configuration file format in several applications, and all went well except one thing: when my program needs to write/modify a config variable in a YAM

3条回答
  •  余生分开走
    2021-02-13 22:00

    Yeah, you and everyone who thought wow, yaml sounds cool, simply put, it doesn't exist, yet

    update: you probably want to use Config::General, its apache config format (xmlish)

    No, PPI is not general purpose tool, if you want BNF-ness, you want to use Marpa

    Of all INI/JSON/YAML/XML, XML probably has the best editor support for non-programmers (sounds crazy)

提交回复
热议问题