You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,18 @@
1
1
# tinytoml
2
2
[](https://github.com/FourierTransformer/tinytoml/actions/workflows/test-and-coverage.yml)[](https://coveralls.io/github/FourierTransformer/tinytoml?branch=main)
3
3
4
-
tinytoml is a pure Lua [TOML](https://toml.io) parsing library. It's written in [Teal](https://github.com/teal-language/tl) and works with Lua 5.1-5.4 and LuaJIT 2.0/2.1. tinytoml parses a TOML document into a standard Lua table using default Lua types. Since TOML supports various datetime types, those are _defaultly_ represented by strings, but can be configured to use a custom type if desired.
4
+
tinytoml is a pure Lua [TOML](https://toml.io) parsing library. It's written in [Teal](https://github.com/teal-language/tl) and works with Lua 5.1-5.4 and LuaJIT 2.0/2.1. tinytoml parses a TOML document into a standard Lua table using default Lua types. Since TOML supports various datetime types, those are by default represented by strings, but can be configured to use a custom type if desired.
5
5
6
-
tinytoml passes all the [toml-test](https://github.com/toml-lang/toml-test) use cases that Lua can realistically pass (even the UTF-8 ones!). The few that fail are mostly representational:
6
+
tinytoml passes all the [toml-test](https://github.com/toml-lang/toml-test)[use cases](https://toml-lang.github.io/toml-test-matrix/) that Lua can realistically pass (even the UTF-8 ones!). The few that fail are mostly representational:
7
7
- Lua doesn't differentiate between an array or a dictionary, so tests involving _empty_ arrays fail.
8
-
- Some Lua versions have differences in how numbers are represented
8
+
- Some Lua versions have differences in how numbers are represented. Lua 5.3 introduced integers, so tests involving integer representation pass on newer versions.
9
9
- tinytoml currently support trailing commas in arrays/inline-tables. This is coming in TOML 1.1.0.
10
10
11
11
Current Supported TOML Version: 1.0.0
12
12
13
-
## Implemented and Missing Features
14
-
- TOML Parsing in Pure Lua, just grab the tinytoml.lua file and go!
15
-
- Does not keep track of comments
13
+
## Missing Features
16
14
- Cannot encode a table to TOML
15
+
- Does not keep track of comments
17
16
18
17
## Installing
19
18
You can grab the `tinytoml.lua` file from this repo (or the `tinytoml.tl` file if using Teal) or install it via LuaRocks
0 commit comments