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++
- Host: GitHub
- URL: https://github.com/cppfw/tml
- Owner: cppfw
- License: mit
- Created: 2015-03-27T15:23:56.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T08:50:22.000Z (5 months ago)
- Last Synced: 2024-12-05T23:17:29.583Z (5 months ago)
- Language: C++
- Homepage:
- Size: 1020 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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].