Commit Graph

235 Commits

Author SHA1 Message Date
Felix Krause 1399d3ba22 Refactoring: added yieldEmptyScalar() 2016-03-19 11:16:24 +01:00
Felix Krause cb6f73eb01 Fixed a bug with comments in block mode 2016-03-19 11:11:38 +01:00
Felix Krause ae933d90a1 Fixes to block scalars and yamlTestSuite
* Properly handle empty block scalars and trailing lines
 * Fixed a bug in yamlTestSuite that led to lots of open file handles
2016-03-18 22:29:35 +01:00
Felix Krause b9eb4b62f6 Fixes for flow style
* Allow # in flow scalar if not preceded by whitespace
 * Fixed various issue with parsing single key-value pairs
   in flow maps
2016-03-17 22:50:41 +01:00
Felix Krause 91cc16cde7 Properly handle multiline scalars
* single-quoted scalars: proper line folding
 * plain scalars: allow tabs before continuation lines
2016-03-17 21:25:30 +01:00
Felix Krause 961a8dba81 Support implicit maps in flow sequences 2016-03-17 20:28:00 +01:00
Felix Krause 7edb682844 Handle ',' as flow indicator after tag shorthand 2016-03-17 19:45:01 +01:00
Felix Krause 4eb9685a57 code style: use compact blocks where possible 2016-03-17 19:30:40 +01:00
Felix Krause 06322505d1 Properly handle ':' after empty key in flow style 2016-03-17 18:57:14 +01:00
Felix Krause eda85be0b9 Support % escape sequences in tag URIs 2016-03-17 18:44:35 +01:00
Felix Krause d1c8c171a1 Properly handle comments in flow mode 2016-03-16 19:30:51 +01:00
Felix Krause 1c61486739 Fixed small bugs
* allow '!' at beginning of tag URI in %TAG directive
 * recognise \t as start of more indented line in block flow scalar
 * Made testEventParser more robust
2016-03-16 19:20:18 +01:00
Felix Krause 91cbf92650 Version 0.3.0 2016-03-14 18:41:20 +01:00
Felix Krause 9c251584a0 Fixed YAML test suite to conform to naming changes 2016-03-14 18:20:20 +01:00
Felix Krause c3f5188e5e Removed unnecessary import 2016-03-14 18:18:41 +01:00
Felix Krause 16d1a1bceb Various code style and naming fixes
* Renamed some symbols for consistency, fixes #6:
   - yamlStartSequence -> yamlStartSeq
   - yamlEndSequence   -> yamlEndSeq
   - yamlStartDocument -> yamlStartDoc
   - yamlEndDocument   -> yamlEndDoc
   - yTagMap           -> yTagMapping
 * Improved code formatting at some places
 * Fixed code documentation at some places
 * Added generic objects to TODO list
 * Removed obsolete parsing tests, these are superseeded
   by yaml-dev-kit test suite integration
2016-03-14 18:10:34 +01:00
Felix Krause 2e8d7b39ab Fixed a bug with setting ! in %TAG directive 2016-03-11 18:32:17 +01:00
Felix Krause e1cee73b27 Fixed a bug with indentation after block scalar 2016-03-11 18:09:34 +01:00
Felix Krause afc5306da5 event parser: support \b and \t escape sequences 2016-03-11 17:58:15 +01:00
Felix Krause 5444572543 Fixed bugs with handling scalars
* Fixed a problem with ':' followed by a plain-safe char
   after space within a plain scalar
 * Fixed block scalar handling in indented block context
2016-03-11 17:56:42 +01:00
Felix Krause 3a8781ba6e Handle more indented lines in folded block scalars 2016-03-10 21:20:14 +01:00
Felix Krause 491c5f5e3a Fixed a problem with implicit keys and properties 2016-03-10 19:59:56 +01:00
Felix Krause 99ece33b8b Parser: Use sets instead of arrays where feasible 2016-03-09 20:29:18 +01:00
Felix Krause a6ce61d3c4 Fixed bug related to block sequence indentation 2016-03-09 20:26:16 +01:00
Felix Krause de7f821696 Improved YAML test suite integration
* Support for anchors and aliases
 * Continue with next test on exception
 * Better naming
2016-03-09 20:15:43 +01:00
Felix Krause a6fff2d7af Parser: Fixed bugs in multiline and block scalar 2016-03-04 21:51:37 +01:00
Felix Krause 121492d4c6 Support updated yaml-dev-kit data layout 2016-03-04 21:23:13 +01:00
Felix Krause 778799e4ff Added option to validate against YAML test suite 2016-03-04 19:10:48 +01:00
Felix Krause 54703ae577 Fixed a problem with comment after plain scalar 2016-03-04 19:07:12 +01:00
Felix Krause a720abdc44 Parser: fixed problems with block scalars
* Block scalar as root node no longer leads to an error
 * Block scalar does not get a ! tag by default
2016-03-04 17:45:47 +01:00
Felix Krause 00e10ff9ce Fixed problem with JSON handling.
* use `[]=` instead of add() to add JSON nodes to an object.
   add() seems to have problems with expanding.
 * renamed bench/json.nim to bench/jsonBench.nim to avoid confusion
   with Nim's stdlib json.nim
2016-02-27 14:33:13 +01:00
Felix Krause 5933605591 Added copyright notices to files where missing 2016-02-27 13:09:50 +01:00
Felix Krause 56d49ec308 Formatting fix in generated doc 2016-02-26 22:18:31 +01:00
Felix Krause 63ed187b35 Made server compile again 2016-02-26 22:12:15 +01:00
Felix Krause 46913867e2 Presenter: Let user decide about newline style
* Added PresentationOptions object; merged PresentationStyle,
   indentationStep and NewLineStyle in it
 * Updated signatures of relevant procs
 * Implemented user-defined newline style in presenter
2016-02-26 21:55:59 +01:00
Felix Krause 349cb19912 Refactoring of serialization code
* Made some procs/templates private that have been public without need
 * Improved documentation of procs
2016-02-26 21:13:40 +01:00
Felix Krause eddcc02e16 Merge branch 'master' of github.com:flyx/NimYAML 2016-02-26 19:28:50 +01:00
Felix Krause 6b46cffbbb Replaced \x0A with \l in strings 2016-02-26 19:28:28 +01:00
Felix Krause a5169230a3 Fixed JSON module to compile against new Nim API 2016-02-25 22:52:52 +01:00
Felix Krause 59d2739b79 Version 0.2.0 2016-02-25 22:44:41 +01:00
Felix Krause ce4349f847 Fixed link in generated documentation 2016-02-25 22:34:23 +01:00
Felix Krause 2d6e44188f Vastly improved quoted string output. Fixes #4 2016-02-25 22:32:50 +01:00
Felix Krause c9dae4430c Fixes #5 2016-02-25 21:16:03 +01:00
Felix Krause b13d8fa201 Presenter: Output block scalars if feasible 2016-02-25 21:04:44 +01:00
Felix Krause 27670f63c9 Implemented and documented DOM 2016-02-22 21:56:30 +01:00
Felix Krause 33a7f93480 Code cleanup; reduced compiler hints 2016-02-19 18:25:01 +01:00
Felix Krause f2f340c0b6 Fixes #2 2016-02-19 17:31:57 +01:00
Felix Krause 43e10f496a Fixes #3 2016-02-18 22:32:25 +01:00
Felix Krause bc9229d0c5 Fixes #1 2016-02-18 22:14:24 +01:00
Felix Krause b2707f99d7 Better error handling in server 2016-02-18 22:01:13 +01:00