An open API service indexing awesome lists of open source software.

https://github.com/cppfw/tml

:herb: tree markup language parser in C++
https://github.com/cppfw/tml

Last synced: 3 months ago
JSON representation

:herb: tree markup language parser in C++

Awesome Lists containing this project

README

        

:name: tml

= {name}

|====
| link:https://github.com/cppfw/{name}/releases[image:https://img.shields.io/github/tag/cppfw/{name}.svg[releases]] | link:https://github.com/cppfw/{name}/actions[image:https://github.com/cppfw/{name}/workflows/ci/badge.svg[ci status]]
|====

Tree markup language.
A lightweight markup language C++ library.

The idea is that the document is just a tree of strings. Each string can have a number of children strings or no children at all, an so on.

document example:
```
"a string"
string_without_spaces
"string with children"{
"child 1"
Child2
"child three"{
SubChild1
"Subchild two"

Property1 {Value1}
"Property two" {"Value 2"}
// comment

/* multi line
comment */

// single line comment should have whitespace
// before double slash //, otherwise it is not treated as comment.
// This is in order to make possible URLs as unquoted strings:
http://website.com/some/url

"Escape sequences inside single double quotes: \" \n \t \\ \/"

// C++-style raw string
R"qwerty(raw string content " """ { } \ / )qwerty"

// quotes-style raw string
"""bla bla {} "" and "quoted" bla bla"""
}
}
```

= Installation and Documentation

See link:wiki/main.adoc[WiKi].