开发者

how to parse INI file format in elisp?

开发者 https://www.devze.com 2023-02-21 23:14 出处:网络
I w开发者_Python百科ant to parse a configuration file in elisp: http://en.wikipedia.org/wiki/INI_file.

I w开发者_Python百科ant to parse a configuration file in elisp: http://en.wikipedia.org/wiki/INI_file.

I haven't find a library that provide this feature, if such library doesn't exist, what's the best way to accomplish this? Are there resources on how to learn to write a parser using elisp?


Open the file in a buffer and use walk through is using normal movement functions like forward-lineand check the content of each line with regexp:s using functions like looking-at and match-string.

I think that this is a good first exercise when it comes to elisp.

0

精彩评论

暂无评论...
验证码 换一张
取 消