Commit graph

139 commits

Author SHA1 Message Date
moandji.ezana a3edb55e9c Merge branch 'underscores_in_numbers' into wip. Fixed version example
test.

Conflicts:
	src/main/java/com/moandjiezana/toml/NumberConverter.java
2015-02-17 10:21:17 +02:00
moandji.ezana 4e22176f1e Improved duplicate table detection. Improved line reporting. 2015-02-16 13:33:02 +02:00
moandji.ezana 2b9af91bf4 Improved detection of invalid use of inline tables. 2015-02-15 01:44:13 +02:00
moandji.ezana 40f12ca3b1 Throw exception when duplicate keys are defined inside an inline table 2015-02-14 02:39:39 +02:00
moandji.ezana 14896a6033 Code coverage improvements 2015-02-14 01:36:14 +02:00
moandji.ezana ba98daeb85 Added Toml#isEmpty()
Added tests for navigation to non-existant keys
2015-02-13 09:09:05 +02:00
moandji.ezana d28fffa4e6 Added support for Unicode characters in quoted keys 2015-02-12 22:38:40 +02:00
moandji.ezana 1c87a9e85a Improved bare key validation and quoted key support 2015-02-12 22:38:17 +02:00
moandji.ezana 8a6ca61101 Cleaned up bare key handling and started cleaning up identifier
validation
2015-02-12 11:21:00 +02:00
moandji.ezana c0e78db681 Improved error message reporting 2015-02-11 17:59:20 +02:00
moandji.ezana 66f7946542 Added test for mixed inline tables in array 2015-02-11 16:02:30 +02:00
moandji.ezana 21c5dfd235 Improved error messages 2015-02-11 15:55:02 +02:00
moandji.ezana ddb061b9f9 Added support for nested inline tables 2015-02-10 20:06:46 +02:00
moandji.ezana 5bd87a6b56 Added support for arrays in inline tables 2015-02-10 14:32:44 +02:00
moandji.ezana a5a6ab22dc Support for very basic inline tables 2015-02-09 22:15:37 +02:00
moandji.ezana 91e5c65577 Improved error handling code and line numbers included in error messages 2015-02-09 22:14:25 +02:00
moandji.ezana 9093fec59b Added support for underscores in numbers 2015-02-09 09:41:04 +02:00
moandji.ezana 4615ed50f7 Cleaned up warnings 2015-02-08 23:28:09 +02:00
moandji.ezana 5a9dd3c58c Merge branch 'getList_Parameter' of git://github.com/d3xter/toml4j into shorter_getList 2015-02-08 23:00:59 +02:00
moandji.ezana 5d17559728 Consolidated all number parsing into NumberConverter 2015-02-08 22:54:28 +02:00
Andreas Sinz 0baf7ea32e Removed unnecessary Class parameter from getList() 2015-02-08 11:23:57 +01:00
moandji.ezana 0dc5f6d206 Added support for whitespace around table and table array name segments 2015-01-25 14:31:17 +02:00
moandji.ezana 0f198e5a5e Arrays handle mixed string types. Removed Parboiled dependency. 2015-01-25 14:18:44 +02:00
moandji.ezana 77788d3c87 Multiline literal strings no longer handled by Parboiled 2015-01-23 22:03:55 +02:00
moandji.ezana b7b546dc83 Improved handling of bare and quoted keys 2015-01-23 15:17:50 +02:00
moandji.ezana 537c75757e Removed support for escaping a slash 2015-01-22 16:02:32 +02:00
moandji.ezana 3ca947785d Added test for example-v0.3.0.toml 2015-01-22 15:18:03 +02:00
moandji.ezana 6ad2743276 Removed unnecessary code 2015-01-22 15:16:54 +02:00
moandji.ezana be3b027d1e Fixed exponent handling 2015-01-22 15:05:47 +02:00
moandji.ezana ba84494583 Fixed handling of short-form unicode escapes 2015-01-22 14:54:50 +02:00
moandji.ezana 1380c72d48 Limited the range of characters bare keys can accept 2015-01-22 14:39:08 +02:00
moandji.ezana df235e5a29 Added support for quoted keys with index arrays 2015-01-22 10:38:41 +02:00
moandji.ezana db950ab054 Added support for quoted keys
https://github.com/toml-lang/toml/pull/283
2015-01-14 09:46:36 +02:00
moandji.ezana 5ed9a4155e Test that key name cannot start with [ 2014-12-15 23:47:06 +02:00
moandji.ezana 714fb81330 Support for unicode characters starting with \U 2014-12-15 16:02:49 +02:00
moandji.ezana 1b3c08a433 Empty table names cause parsing to fail 2014-12-15 15:58:19 +02:00
moandji.ezana 12e73fb314 Added support for RFC 3339 dates. 2014-12-15 15:44:03 +02:00
moandji.ezana 6267ac6c9d Split tests into more manageable chunks 2014-12-15 13:01:48 +02:00
moandji.ezana 1390487d3f Support for exponents and doubles with a plus sign 2014-11-10 23:02:10 +02:00
moandji.ezana 16e9fa16f0 Support integer with leading plus sign 2014-11-10 22:01:46 +02:00
moandji.ezana 729e0e4ed9 Fail on unterminated multiline strings 2014-11-02 18:13:58 +02:00
moandji.ezana 7a780b58b3 Moved test file to correct folder
(I didn't see it before because it failed in Maven but not in Eclipse)
2014-11-02 13:26:49 +02:00
moandji.ezana 39300478f1 Added multiline and raw string tests from BurntSushi 2014-11-02 13:22:20 +02:00
moandji.ezana 16c8b409e6 Added test to confirm that out-of-order table arrays are supported.
cf. https://github.com/toml-lang/toml/issues/252
2014-10-10 11:45:22 +02:00
moandji.ezana ccca314649 Parse multiline string literals and all multiline strings with text on
the first line
2014-08-22 23:59:02 +02:00
moandji.ezana 7e101ce3a3 Added support for literal strings 2014-08-13 11:28:18 +02:00
moandji.ezana 8f877776d6 Support for multiline strings 2014-08-13 00:28:12 +02:00
moandji.ezana 2667e2c20d Test that key names in table arrays can contain dots 2014-08-12 23:17:07 +02:00
moandji.ezana ff4c0cbc16 Key names can have dots in them 2014-08-12 22:44:24 +02:00
moandji.ezana b2888519fb Incorporated all of validator's valid tests into JUnit test suite 2014-08-12 18:27:14 +02:00
moandji.ezana 0bca81e5da Split BurntSushiTest into valid and invalid. 2014-08-12 18:17:15 +02:00
moandji.ezana 86e921cb4b Improved handling of malformed keys.
Incorporated all of the validator's invalid tests.
2014-08-12 18:08:37 +02:00
moandji.ezana e2a085d310 Improved handling of invalid integers.
Type parsers broken out into separate package
2014-08-12 17:29:56 +02:00
moandji.ezana 010bc88a20 Improved invalid boolean handling.
Introducing new ValueParser system
2014-08-12 16:44:47 +02:00
moandji.ezana adbfeae05e Improved handling of invalid strings and array entries 2014-08-12 15:59:53 +02:00
moandji.ezana 155781b5e2 Improved float handling 2014-08-12 15:42:18 +02:00
moandji.ezana 922408e979 Improved handling of invalid key names 2014-08-12 13:15:12 +02:00
moandji.ezana 6b67baf3bf Improved handling of nested arrays 2014-08-12 13:02:46 +02:00
moandji.ezana 01f2ff7d76 Improved handling of arrays, tables and table arrays 2014-08-12 12:53:18 +02:00
moandji.ezana 055480ee0b Initial work to implement regex-based parser 2014-08-05 22:18:04 +02:00
moandji.ezana 14d424e573 Added failing test on invalid number 2014-08-03 14:24:31 +02:00
moandji.ezana 60cbf7ea36 Added datetime-malformed-no-leads test 2014-08-03 14:23:46 +02:00
moandji.ezana 96016c02d2 Improved comment handling and disallowed mixed arrays 2014-07-22 15:56:07 +02:00
moandji.ezana e36b8dbe8e Read empty string followed by new line.
Fix #3 https://github.com/mwanji/toml4j/issues/3
2014-07-21 13:07:36 +02:00
Paul Koerbitz 14ec051e22 Add 'EmptyStringTest.java' which shows problem with empty strings 2014-06-30 18:29:04 +02:00
moandji.ezana 1e97e7602b Improved test coverage 2014-04-10 15:07:45 +02:00
moandji.ezana 6329f9cd62 Tested that TOML array can be converted to Java array 2014-04-09 15:08:57 +02:00
moandji.ezana 35c76d85a0 Tested table array conversion to Java class 2014-04-09 15:03:44 +02:00
moandji.ezana 0af30b90ac Indexed navigation in compound keys and shallow merging of defaults 2014-04-09 15:02:41 +02:00
moandji.ezana 2f355b47f3 Tested and documented extra possibilities of conversion to Java 2014-04-09 11:04:28 +02:00
moandji.ezana b0a8de8b19 Added Toml#parse(Reader) and Toml#parse(InputStream) 2014-04-08 16:37:02 +02:00
moandji.ezana 86257278b7 Added javadoc. Better null-handling and return empty containers instead
of null.
2014-04-08 12:52:56 +02:00
moandji.ezana a8e1acdba7 Added UTF-8 test. 2014-04-07 15:42:49 +02:00
moandji.ezana 453ce84fc5 Support for nested table arrays 2014-04-07 14:38:34 +02:00
moandji.ezana 095e33a03b Added support for simple table array 2014-04-07 13:17:56 +02:00
moandji.ezana 5c3c868682 Changed key group to table in tests 2014-04-06 22:55:56 +02:00
moandji.ezana bc78ff64b5 Replaced "key group" by "table" 2014-04-06 22:25:21 +02:00
moandji.ezana 0c3448156c Track existing groups by their full name.
Fixes #1
2014-04-06 21:34:25 +02:00
moandji.ezana 494049124f Updated hard example 2014-04-06 21:12:11 +02:00
moandji.ezana 40e5adfd2e Test uses Toml object 2014-04-06 21:11:52 +02:00
moandji.ezana 122d7dd8f8 Removed console logging 2013-03-22 14:38:01 +02:00
moandji.ezana 4473418a72 Added support for negative numbers 2013-03-22 14:36:48 +02:00
moandji.ezana 2483dc48ae Added support for all special and Unicode characters and checking for duplicate key groups. 2013-03-22 10:00:37 +02:00
moandji.ezana 450e7402ef Toml#to(Class) converts to custom class 2013-02-28 12:53:46 +02:00
moandji.ezana 53c2de5519 Added support for all special characters except null 2013-02-28 10:59:17 +02:00
moandji.ezana e3a3d22a46 Moved example.toml 2013-02-28 09:34:21 +02:00
moandji.ezana c539be53b9 Parses hard_example.toml 2013-02-28 09:33:16 +02:00
moandji.ezana 9fe3637126 Moved parsing from constructor to parse() methods 2013-02-26 21:20:00 +02:00
moandji.ezana 4ad8a683cc Initial commit 2013-02-26 09:57:26 +02:00