Commit Graph

168 Commits

Author SHA1 Message Date
Felix Krause b64e40ec41 Fixed more test suite failures 2016-09-14 12:18:00 +02:00
Felix Krause 2a6a103b36 Fixed block scalars in yaml test suite 2016-09-13 20:19:02 +02:00
Felix Krause 451ffb8e95 Started fixing yaml test suite errors 2016-09-13 13:38:10 +02:00
Felix Krause 78fa4ac5e3 Improvements to exception handling 2016-09-13 12:01:21 +02:00
Felix Krause 92504c1893 JSON tests working again. Other tests TODO 2016-09-13 10:39:54 +02:00
Felix Krause 92f5a7a6fd got parse.nim to compile again
* it is still pretty broken
2016-09-12 21:38:56 +02:00
Felix Krause 7376af7d6f started patching parse.nim 2016-09-12 18:04:26 +02:00
Felix Krause a1f900ae44 Enhanced empty line processing 2016-09-11 19:20:02 +02:00
Felix Krause b9286fa550 Implemented lookahead 2016-09-11 18:23:47 +02:00
Felix Krause c104ffec01 Added token start memory to lexer 2016-09-11 14:55:29 +02:00
Felix Krause 4e97e53489 Implemented anchors and aliases 2016-09-11 13:04:10 +02:00
Felix Krause 4d1a444f61 Implemented tag handles 2016-09-11 12:52:24 +02:00
Felix Krause 279d233c4f Implemented adjacent values in flow style 2016-09-11 12:13:51 +02:00
Felix Krause 383f1ab016 Made lexer non-generic 2016-09-11 11:28:05 +02:00
Felix Krause acea6e34b6 Renaming of stuff 2016-09-11 10:02:10 +02:00
Felix Krause 8e7b3b32bb lexer: Flow indicators 2016-09-10 17:33:58 +02:00
Felix Krause ba02b41555 lexer: worked on block scalars and stuff 2016-09-10 17:19:37 +02:00
Felix Krause 79f432a27d lexer: implemented quoted scalars 2016-09-10 13:38:42 +02:00
Felix Krause 68a157e173 First compiling version (incomplete) 2016-09-10 12:38:03 +02:00
Felix Krause d51872f9e7 Started work on new lexer 2016-09-10 10:30:40 +02:00
Felix Krause 5a90255993 Fixed remaining JS compilation issues
* Changed transform() to not use first class iterators
 * provide a archaic `$` for uints that will break if
   poked
 * TODO: test JS output!
2016-09-01 21:08:27 +02:00
Felix Krause ad18db5113 Do not use first class iterators in serialization
* needed for JS backend
2016-09-01 20:56:34 +02:00
Felix Krause ef9159ab98 Removed trailing ws; JS fixes
* do not call writeStackTrace() if compiling to JS
2016-08-30 22:15:29 +02:00
Felix Krause 34cbe61479 Got rid of lots of compiler warnings 2016-08-17 22:50:37 +02:00
Felix Krause 30365d2f17 More refactoring
* Renamed ParserYamlStream to ParserContext
 * Moved almost all internal state from YamlParser to ParserContext
2016-08-17 22:21:34 +02:00
Felix Krause a9b82b0e45 Finished parser refactoring
* Re-implemented flow style handling
 * Deleted old parser code
2016-08-17 20:04:59 +02:00
Felix Krause 01b34290b7 Parser refactoring
* refactored parser to not use first class iterators
   (not available for JS backend)
 * Current state misses flow style handling and fails tests
2016-08-15 21:30:49 +02:00
Felix Krause 4ddc094cfd Internal changes to YamlStream (no API change)
* Prepared YamlStream for major parser refactoring
2016-08-10 20:42:44 +02:00
Felix Krause b6f730c459 Fixes #25 2016-08-09 21:20:25 +02:00
Felix Krause 09824f931b Refactoring of assertions, improved exceptions
* Replaced all assert statements with yAssert, which prints an error message
   and quits on failure, but does nothing when compiling with -d:release.
 * Implemented and used internalError for better discovery of internal bugs.
   Fixes #8.
 * Made RawYamlStream able to raise YamlStreamError, which might primarily be
   useful for user-defined serialization
 * Properly encapsulate RangeError coming from int/uint serialization on 64bit
   machines in YamlStreamError.
 * Some minor style improvements
2016-08-09 20:47:22 +02:00
Andrea Ferretti e33af48217 Fixed issue: integer numbers could not be parsed as float 2016-07-08 11:35:31 +02:00
Felix Krause 9054bf7630 Fixes #19 2016-07-07 17:46:23 +02:00
Andrea Ferretti 2d89cb7d36 Fixed type hints for floats 2016-07-07 17:14:18 +02:00
Felix Krause b01270dc9e Fixes #17 2016-06-26 12:41:06 +02:00
Felix Krause fb05fcc95f Fixed undeclared possible IndexError from queues 2016-06-26 12:37:15 +02:00
Felix Krause 280f0d6ce2 Check for multiple documents when dumping JSON 2016-06-08 20:07:29 +02:00
Felix Krause 5f6ed61e30 Fixed and improved canonical presentation 2016-06-08 20:01:46 +02:00
Felix Krause 9945375904 ... and now also fixed it for canonical form 2016-06-08 19:46:58 +02:00
Felix Krause 1df2444c50 Fixed a JSON presentation bug 2016-06-08 19:40:53 +02:00
Felix Krause 7cad7b5478 Fixed and properly implemented variant objects 2016-06-08 19:15:50 +02:00
Felix Krause 152a4f3bd3 NimYAML version 0.5.1
* Fixed a problem that was caused by a change in getType in Nim devel
2016-06-05 20:52:43 +02:00
Felix Krause 48aeff20c0 Use variant object types for heterogeneous data
* Made variant object types work (really this time)
 * Added `markAsImplicit`
 * Implemented implicit variant object types
 * Added documentation
2016-06-05 19:29:16 +02:00
Felix Krause e81da97a17 Removed most of variant-object specific code
* fieldPairs() already handles variant objects fine. decided not to
   go further along the way of identifying object variants by their
   discriminants in tag URIs.
 * variant objects are now supported just like normal objects.
2016-06-05 15:43:39 +02:00
Felix Krause a0c435d6eb Finally got variant objects to work
* may still require some polish before merging
2016-05-25 23:32:49 +02:00
Felix Krause 592158fad0 Merge branch 'master' into variant-objects 2016-05-25 23:18:32 +02:00
Felix Krause f5431af0fd fastparse refactoring, part III
* Changed some more templates to procs
2016-05-23 21:10:28 +02:00
Felix Krause 78fac63af5 fastparse refactoring, part II
* Transformed quite some templates to procs
 * Moved quite some local vars from parse() to YamlParser
2016-05-21 23:26:39 +02:00
Felix Krause 10fec5fb1f fastparse refactoring, part I
* Replaced lots of templates with procs
 * Some minor improvements
2016-05-21 22:08:19 +02:00
Felix Krause f73dfdc6ab Worked on variant objects (not working) 2016-05-09 19:03:11 +02:00
Felix Krause 4ca4b2c87e Support nil strings and seqs 2016-04-04 21:21:24 +02:00