Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 370 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 370 Bytes

INILTX

An INI/LTX config parser

Example

# config.ini

[config]
token = asdf123
# main.ltx
#include config.ini

version = 1.0.0

# define a section that inherits 'config' section
[main]:config
name = iniltx-v%version%
import iniltx

tokens = iniltx._tokenize(open("main.ltx").read())
config = iniltx.parse(tokens)

print(config)