csharpfritz / TAML

Defining the coolest and simplest markup language delimited ONLY by tabs
MIT License
23 stars 11 forks source link

Python parser #32

Closed etnnth closed 3 years ago

etnnth commented 4 years ago

I made a small python parser with a couple of tests. The parser output key value pairs as a tuple of (key, value) and list as list For example the file :

root
    key1        value1
    key2        value2
    key3
        item1
        item2
        item3
        item4
            key41           value41
            key42           value42
            key43           value43
            key44           value44

gives:

[
    ("root",[
        ("key1", "value1"),
        ("key2", "value2"),
        ("key3",[
            "item1",
            "item2",
            "item3",
            ("item4",[
                ("key41", "value41"),
                ("key42", "value42"),
                ("key43", "value43"),
                ("key44", "value44"),
                ],),
            ],),
        ],
    )
]
BitCashCF commented 4 years ago

You can Auth. option OUT end or Account Transfer Withdraw and Exchange

csharpfritz commented 3 years ago

This is really great! Thank you for the contribution.

Next, we should write some documentation about how to use the parser. I'll open an issue