ctSkennerton / INI-Parser

A smalltalk parser for INI files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INI Parser

A parser for INI configuration files.

Unit Tests Coverage Status Group loading check

GitHub release Pharo 8.0 Pharo 9.0 Pharo 10 Pharo 11 Pharo 12

This is a simple parser for files with the following format:

globalKey = value
; This is a comment
# This is also a comment

[Section]
key = value
key2 = value2

[Another Section]
key = value
key2 = value2

Only single line values are currently supported.

Parsing returns a two level dictionary.

parser := IniReader on: iniReadStream.
data := parser parse.

The parsing code is a derivative work of the NeoJSON parser by Sven Van Caekenberghe under the MIT license.

About

A smalltalk parser for INI files

License:MIT License


Languages

Language:Smalltalk 100.0%