Commit graph

200 commits

Author SHA1 Message Date
moandji.ezana
a342b1fef6 Toml#getList() returns null if key is missing 2015-04-29 20:30:11 +02:00
moandji.ezana
4d32f77ce0 Removed Toml#to(Class, Gson) 2015-04-29 00:19:39 +02:00
moandji.ezana
0817b40d8f Simplified test names 2015-04-13 13:24:52 +02:00
moandji.ezana
8cae6c2e32 Improved error message when key overwrites table 2015-04-13 13:23:58 +02:00
moandji.ezana
0795127266 New error message when table overwrites existing key definition 2015-04-13 13:04:10 +02:00
moandji.ezana
1a6ddbd5ac Moved tests to more appropriate classes 2015-04-13 11:42:05 +02:00
moandji.ezana
439d1c600d Fixed typo 2015-03-30 22:46:13 +02:00
moandji.ezana
d958baebb5 Added getArray(String, List) 2015-03-30 22:45:15 +02:00
moandji.ezana
c0eafb9f17 DRY-er date creation in tests 2015-03-30 22:31:13 +02:00
moandji.ezana
d31792e5a8 Added test to show that constructor defaults take precedence over method
defaults
2015-03-30 22:09:12 +02:00
moandji.ezana
7f11f97020 Merge branch 'default_values' of git://github.com/udiabon/toml4j into default_values 2015-03-30 21:51:33 +02:00
Nick Jiang
414bd396fa Call original method to avoid duplicated work. 2015-03-27 10:13:09 +08:00
Nick Jiang
bc04eec538 Returns the default value if the key was not found. 2015-03-26 16:50:48 +08:00
moandji.ezana
8c66284960 In number, underscore after dot is invalid 2015-02-17 10:24:45 +02:00
moandji.ezana
7aa496582c Added v0.4.0 example 2015-02-17 10:21:57 +02:00
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
ca7fcc766b Removed unused methods and variables 2015-02-13 08:44:54 +02:00
moandji.ezana
be85328555 Javadoc improvements 2015-02-13 08:43:35 +02:00
moandji.ezana
cdef758f4c Made TomlParser#run(String) static 2015-02-13 08:19:40 +02:00
moandji.ezana
b69f8514cb Deleted unused constant 2015-02-13 08:18:56 +02:00
moandji.ezana
96220b7a88 The TOML string is never transformed into an array 2015-02-12 23:25:10 +02:00
moandji.ezana
8388e394ed Removed unused methods 2015-02-12 23:12:50 +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
7292fe5468 Added Results.Errors to Context constructor and Context.with(Identifier) 2015-02-12 08:33:43 +02:00
moandji.ezana
786529fce6 Moved ValueConverterUtils.isComment(String) to ValueConverters 2015-02-12 08:31:34 +02:00
moandji.ezana
c0e78db681 Improved error message reporting 2015-02-11 17:59:20 +02:00
moandji.ezana
c4027ed2d5 Merge branch 'inline_tables' into wip
Conflicts:
	src/main/java/com/moandjiezana/toml/Results.java
	src/main/java/com/moandjiezana/toml/TomlParser.java
	src/test/java/com/moandjiezana/toml/ErrorMessagesTest.java
2015-02-11 16:43:48 +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
3e2d9fad37 Simplified TomlParser 2015-02-11 15:54:51 +02:00
moandji.ezana
d1d7145a03 Streamlined array and inline table converters to re-use other converters
[ci skip]
2015-02-11 00:59:48 +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
de1bcbdca2 Reduced method visibility 2015-02-09 22:14:58 +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
d32ead52d4 Improved error handling code and line numbers included in error messages 2015-02-09 16:29:20 +02:00
moandji.ezana
9093fec59b Added support for underscores in numbers 2015-02-09 09:41:04 +02:00
moandji.ezana
1bc8d4bcc5 Removed misc. section of change log. Added to CONTRIBUTING.md. Clarified
javadoc.

[ci skip]
2015-02-08 23:56:54 +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
b70661a683 Removed errant main method 2015-02-08 22:55:06 +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
84de939b7c Removed StringBuilder from literal string processors 2015-01-23 22:22:29 +02:00
moandji.ezana
77788d3c87 Multiline literal strings no longer handled by Parboiled 2015-01-23 22:03:55 +02:00
moandji.ezana
40cab5c499 Literal strings no longer handled by Parboiled 2015-01-23 16:36:15 +02:00
moandji.ezana
bde639951a Exponents no longer handled by Parboiled 2015-01-23 16:06:06 +02:00
moandji.ezana
b6b0d733a5 Integers no longer handled by Parboiled 2015-01-23 15:48:09 +02:00
moandji.ezana
7380d74592 Booleans no longer handled by Parboiled 2015-01-23 15:27:48 +02:00
moandji.ezana
e0762bf82a Removed duplicate comment checks 2015-01-23 15:22:46 +02:00
moandji.ezana
b7b546dc83 Improved handling of bare and quoted keys 2015-01-23 15:17:50 +02:00
moandji.ezana
f804c99534 Table array name parsing no longer handled by Parboiled 2015-01-23 14:17:39 +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
ac3c0fd230 Adapted hard_example to bare/quoted key restrictions 2015-01-22 15:06:11 +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
28c57069c6 Fixed Javadoc for Java 8 2014-12-16 01:07:59 +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
28ef345bba Updated tests from BurntSushi/toml-test 2014-12-15 13:01:17 +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
4c9d28bfc4 Deleted unused code 2014-11-02 18:13:26 +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
1f290c94b8 Removed unused variable and added static imports. 2014-08-22 22:30:18 +02:00
moandji.ezana
fcd77dca6b Renamed ValueParser#String() to ValueParser#StringToken() to avoid
conflicts/confusion with Parboiled method.
2014-08-13 20:24:58 +02:00
moandji.ezana
dfd5501132 Introduced Multiline enum to clean TomlParser up a bit 2014-08-13 20:22:34 +02:00
moandji.ezana
b6af2c6d48 ValueConverterUtils.parse() and ValueConverterUtils.parser() make it
easier to use Parboiled.
2014-08-13 16:01:31 +02:00
moandji.ezana
2b8bf136a9 Renamed StatementParser to ValueParser 2014-08-13 14:36:21 +02:00
moandji.ezana
697349e9a2 Renamed ValueParser to ValueConverter and associated changes 2014-08-13 14:31:50 +02:00
moandji.ezana
c841c4e1fe Removed regexes from BooleanParser and IntegerParser and using Parboiled
instead
2014-08-13 14:27:23 +02:00
moandji.ezana
cd7b7b68d9 Loop over parsers 2014-08-13 12:09:04 +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
1dd40b14ed Separated error messages with a new line. 2014-08-12 22:45:37 +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