开发者

how to parse INI file format in elisp?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜