eanderton
7c63fff960
Added Position Support to TomlTree
...
TomlDocument provides an optional TOML processing path where position
informaiton is stored alongside a TomlTree.
* Added Position struct
* Revised TomlTree to contain position data
* Added tomlValue to bind positions to values
* Revised parser to emit position data
* Revised token to use new Position struct
* Added tests for new functionality
* Bugfixed table array duplicate key handling
* Applied gofmt to all code
2014-08-26 21:00:41 -04:00
Thomas Pelletier
bf549a2194
Run gofmt
2014-08-07 12:52:42 +02:00
eanderton
dd04a2f3cd
Added line/col support to lexer
2014-08-06 07:13:15 -04:00
eanderton
7b208738bc
Fixed formatting; added name to license file
2014-07-07 21:06:42 -04:00
Thomas Pelletier
dc20c454d7
Handle dots in keys
2013-12-10 21:51:40 +01:00
Thomas Pelletier
0c4e891f3e
Handle non-alpha chars in keys
2013-12-10 19:46:56 +01:00
Thomas Pelletier
01609e0ab7
Add some tests for nested empty arrays
2013-12-10 17:46:30 +01:00
Thomas Pelletier
a34fc5f051
Don't allow invalid escape sequences
2013-12-10 17:34:11 +01:00
Thomas Pelletier
e8d5dbf787
Don't allow two equals for the same key
2013-12-10 17:28:16 +01:00
Thomas Pelletier
5ffe2e5565
Don't allow float to end with a dot
2013-12-10 17:24:53 +01:00
Thomas Pelletier
0f6008f46e
Add some tests for the lexer
2013-12-09 19:05:18 +01:00
Thomas Pelletier
53005a205f
Handle keys with dash. ref #10
2013-12-09 17:12:07 +01:00
Thomas Pelletier
34e1e282fa
Add test for unicode string
2013-07-01 21:40:08 +02:00
Thomas Pelletier
71141675e5
Fixes #6 : implement \uXXXX escaping
2013-07-01 21:38:00 +02:00
Thomas Pelletier
8a5d380286
Fix strings lexing and add a few tests
2013-03-26 10:53:49 +01:00
Alexander Staubo
4e227cb34e
Support underscores and uppercase letters in key names, as well as international characters (not specified in TOML spec, but implied by Unicode and JSON compatibility). Fixes #3 .
2013-03-19 06:17:28 +01:00
Thomas Pelletier
8783fed844
Readd source files. I need coffee now
2013-02-25 10:57:12 +01:00