Commit Graph

68 Commits

Author SHA1 Message Date
Maurice Makaay af5d35ecee Cleaning up some logic around whitespace / newlines / comments. 2019-07-04 11:31:28 +00:00
Maurice Makaay 019dd35d83 Backup insane idea. 2019-07-03 15:46:23 +00:00
Maurice Makaay c67a91b1ca Ignore build output, removed some profiling code. 2019-06-30 10:15:39 +00:00
Maurice Makaay a28269800a Make use of the new feature to run without sanity check on the parser, to make the big testfiles-based test suite faster. 2019-06-30 01:07:13 +00:00
Maurice Makaay 9680c2b844 Implemented TOML arrays as a linked list, which prevents a lot of memory copying on large arrays. Also implemented a json comparison, inspired by BurnSushi's version, which makes the tests work when keys in JSON maps are not in the expected order. 2019-06-29 23:11:03 +00:00
Maurice Makaay 7227fdcb93 Integrated multiple file-based test suites (BurntSushi, iarna and my own) into the unit tests. BurntSushi's tests are also still supported using the test interface implementation from cmd/burntsushi-tester. 2019-06-29 15:45:52 +00:00
Maurice Makaay ec3a47da8d Composition over inheritance, why didn't I do that in the first place I wonder. 2019-06-28 08:34:35 +00:00
Maurice Makaay febe1ff568 Bits of code cleanup, no functional changes. 2019-06-28 08:23:43 +00:00
Maurice Makaay b1484cb690 Slight improvement for the document-level error in case no key or table was found. 2019-06-27 22:54:54 +00:00
Maurice Makaay 5782971bde 100% compatibility with the BurntSushi tests established. 2019-06-27 22:43:17 +00:00
Maurice Makaay 0d4cb356e9 Straightening out a few small wrinkles that came up from testing against the BurntSushi testset. 2019-06-27 22:01:56 +00:00
Maurice Makaay 13d0011d9d Oops, committed some build output and test files. 2019-06-27 13:59:40 +00:00
Maurice Makaay 6b9a7adfd9 Added support for the BurntSushi TOML tests. 2019-06-27 13:58:13 +00:00
Maurice Makaay 63cbe18d03 Backup work, before switching from module development setup to standard GOPATH workspace setup (some tooling simply is not yet working with it, and I mainly miss refactoring a lot) 2019-06-27 07:36:24 +00:00
Maurice Makaay b95f255ae7 Moved all parser code into subpackage 'parse'. 2019-06-26 21:51:42 +00:00
Maurice Makaay 54cb75955d Went over the full TOML AST implementation to give stuff good names.
Also pushed all tests to ast_test to make sure that the public interface
is sufficient for using the package
2019-06-26 15:38:32 +00:00
Maurice Makaay 688894dbf2 Extracted the toml AST to its own subpackage. Preparation for having encoder and decoder as well, not all inside the main toml dir. 2019-06-26 13:57:22 +00:00
Maurice Makaay da62fc078e Removed .vscode folder from repo. 2019-06-26 12:55:30 +00:00
Maurice Makaay fd9365b842 Implemented inline tables + tests. 2019-06-26 12:54:04 +00:00
Maurice Makaay 97153fc806 Brought test coverage too 100%. 2019-06-26 07:18:42 +00:00
Maurice Makaay 608e68c207 Cleaning up test code. 2019-06-26 06:39:41 +00:00
Maurice Makaay c536dd1243 Huge overhaul in AST handling. The AST is now fully integrated with the parser, which has been simplified quite a bit because of this. 2019-06-25 21:29:05 +00:00
Maurice Makaay 15560b29b0 Added a good string formatter for the AST, to making testing more straight forward. 2019-06-24 07:05:38 +00:00
Maurice Makaay 8838dc9c44 Backup work. 2019-06-23 12:05:52 +00:00
Maurice Makaay 726b5a377b A bit of code cleanup, to let the date/time code better represent the ideas behind the followed methodology. 2019-06-19 11:28:03 +00:00
Maurice Makaay 45245e05b6 Some small cleanup, committing before I continue with inline lists. 2019-06-19 11:09:26 +00:00
Maurice Makaay c405260ea6 All base value types for TOML implemented (added date/time types and implemented correct detection of the possible value types). All examples from the TOML specification key/value assignments have been added to the unit tests. All are gree :-) 2019-06-19 10:42:51 +00:00
Maurice Makaay fd66f63588 And stil... it can be cleaner and simpler. 2019-06-18 23:26:15 +00:00
Maurice Makaay 1c8f5ffe7e Added booleans ...that was boring. 2019-06-18 23:24:23 +00:00
Maurice Makaay c29afaeacc Nope, NOW I'm done with the number types. On reading the docs, I noticed
that I missed an implementation for floats 'nan' and 'inf'. All taken care
of now!
2019-06-18 23:13:59 +00:00
Maurice Makaay 278efd7dbe Implemented all number formats for TOML. 2019-06-18 22:52:45 +00:00
Maurice Makaay e8739d38ea Implemented the TOML number formats (integer, binary, octal, hexadecimal. 2019-06-18 15:45:33 +00:00
Maurice Makaay 51a093efc5 Added some docs from the TOML specs to the code for easy reference. 2019-06-17 23:44:32 +00:00
Maurice Makaay e1ef9df7ca Implemented all string types and key types 2019-06-17 23:25:39 +00:00
Maurice Makaay b49715652e Brought the TOML code up-to-speed with the latest version of parsekit. 2019-06-17 13:59:59 +00:00
Maurice Makaay 269bd9ed36 Compatbility with parsekit v0.0.2 2019-05-26 09:26:17 +00:00
Maurice Makaay 9ab468a3ba Compatiblity with the latest parsekit version. 2019-05-25 22:53:37 +00:00
Maurice Makaay 0ac419fb9e Compatibility with latest parsekit. 2019-05-24 20:50:51 +00:00
Maurice Makaay 3cc6fed3df Commit to get compatibility with the latest parsekit. 2019-05-24 16:01:35 +00:00
Maurice Makaay 3e0c9136c3 Moved EOF handling into parsekit and updates for code-compatiblity with latest parsekit version. 2019-05-24 13:58:00 +00:00
Maurice Makaay 6a4a314fee Backup work. 2019-05-24 12:41:53 +00:00
Maurice Makaay 6af770a918 Compatibility with the latest parsekit module. 2019-05-23 00:02:53 +00:00
Maurice Makaay 234bbdf30f Compatibility with new atoms in parsekit. 2019-05-22 12:44:52 +00:00
Maurice Makaay 9a13e0dd7a Split off the parsekit code into a separate repository and Go module. 2019-05-21 15:25:06 +00:00
Maurice Makaay a3947feea7 Some changes to see how they reflect in godoc. 2019-05-21 13:23:30 +00:00
Maurice Makaay 9c0b889499 Adding a go file to the module root to make 'go get' happy. 2019-05-21 13:03:20 +00:00
Maurice Makaay 478efe3e25 Backup work. 2019-05-21 12:49:42 +00:00
Maurice Makaay d9d837fe6e Added a load of parser/combinator implementation, the system seems feasible! 2019-05-20 22:40:59 +00:00
Maurice Makaay 3677ab18cb Backup work on code cleanup now the parser/combinator code is stable. 2019-05-20 12:24:36 +00:00
Maurice Makaay 84ae34fb5f Just a bit of code formatting. 2019-05-19 23:44:11 +00:00