38 Commits

Author SHA1 Message Date
Felix Krause
fe4449aaec Fixed server, improved docs
* made docs server compile again
 * improved migrating documenattion
 * improved CSS for mobile devices
 * fixed GitHub link
2023-09-04 22:48:04 +02:00
Felix Krause
879c7adfc0 Updated documentation. Fixed CI 2023-08-30 22:48:58 +02:00
Felix Krause
f60725fc93 Made loading work at compile time
* dumping doesn't work at CT
 * timestamps don't work at CT
 * aliases don't work at CT
 * renamed tserialization -> tnative to mirror rename of native.nim file
 * added comptime tests to tnative, currently only execute when doing
   nim nativeTests, because of compiler bug
 * Fixes #70, #91
2023-08-30 21:14:31 +02:00
Felix Krause
189844a72b Rewrote large parts of presenter
* PresentationOptions has gained more fine-tuning options:
   * directivesEnd: specifies when `---` is written. ref #135
   * containers: specifies whether containers use block or flow style
   * suppressAddrs: if set, suppresses output of attributes
   * quoting: specifies how strings should be quoted
   * condenseFlow: specifies whether flow sequences should be on a
     single line
   * explicitKeys: specifies whether mapping keys should always have '?'
 * PresentationStyle is now a list of presets that set
   multiple options in PresentationOptions.
 * Does not output trailing spaces anymore. ref #135
 * Writes compact notation, i.e. a mapping in a sequence starts on the
   line with the sequence's `-`, unless attributes are written
 * Added tests for the presenter
 * Existing code might change behavior because of whitespace, `---` and
   compact notation. The API has been extended so that existing code is
   affected as little as possible.
2023-07-31 19:16:24 +02:00
theamarin
ee7dc11a90
Adapt type hinting to Yaml 1.2.2 (#132)
Updated type hinting for YAML 1.2.

 * previously outdated regexes from YAML 1.1 were used.
 * removed special cases for leading zeros that are not part of YAML 1.2.
 * updated literal regexes for infinity, NaN and boolean values.
 * added tests for type hinting

Co-authored-by: theamarin <theamarin@thecreation.de>
2023-04-10 17:17:03 +02:00
Felix Krause
f6e09ebb6a Fixed server to return proper error messages 2023-03-13 22:52:59 +01:00
Felix Krause
96254f1900 Fixes #80 2020-03-22 11:57:00 +01:00
Felix Krause
58ef5da17b Made token output conform to yaml test suite
* Added -d:yamlScalarRepInd switch
 * Modified `$` on stream items to use yaml test suite format
2017-02-14 19:06:41 +01:00
Felix Krause
356dc5c8bd Added testSuiteEvents tool 2017-01-09 19:09:07 +01:00
Felix Krause
05c4aa733c Documentation update
* Added schema documentation
 * Documented setDefaultValue
 * Updated some tag URIs
2016-11-01 12:40:53 +01:00
Felix Krause
6a3d876f7e Generate testing.html with rst
* use same html template as other pages
 * Also improved .gitignore
2016-10-27 18:57:32 +02:00
Felix Krause
fa14a11957 Separated test suites for travis 2016-10-09 16:10:11 +02:00
Felix Krause
846b836e92 Integrated parser and quickstart tests
* Now executed when calling `nim tests`
 * Refactored parser tests to use unittest
 * Fixed some pwd issues in tests
2016-10-09 15:05:18 +02:00
Felix Krause
31ac201e41 doc: extracted examples to own files 2016-10-08 18:38:27 +02:00
Felix Krause
9fffc7b127 Fixed links in documentation 2016-09-22 14:06:54 +02:00
Felix Krause
5dfc984913 Updated documentation for new structure 2016-09-21 21:20:57 +02:00
Felix Krause
7461636365 Fixed bench config 2016-09-14 14:44:09 +02:00
Felix Krause
4670450a27 Fixed bench and remaining problems 2016-09-14 14:35:41 +02:00
Felix Krause
b64e40ec41 Fixed more test suite failures 2016-09-14 12:18:00 +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
cde346b85c Switched to indentation of 2 spaces 2016-04-02 17:48:22 +02:00
Felix Krause
167c25af72 Added benchmark for processing YAML input 2016-03-20 10:32:14 +01:00
Felix Krause
4eb9685a57 code style: use compact blocks where possible 2016-03-17 19:30:40 +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
778799e4ff Added option to validate against YAML test suite 2016-03-04 19:10:48 +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
0a7f87a539 Improved docs. Fixed serialization problem.
* Added serialization.txt to doc
 * Fixed rendering problem in api.txt
 * Use explicit tag when ref type renders to a scalar that can be
   parsed to !!null
 * Added test cases for this ref type fix
2016-02-15 22:54:05 +01:00
Felix Krause
02e505959a Added setTagUriForType. Used it. Improved docs. 2016-02-15 19:46:21 +01:00
Felix Krause
325e3ec18f Made serialization part of yaml. Improved doc. 2016-02-12 20:44:38 +01:00
Felix Krause
cb18c5cb9c Improved documentation 2016-02-02 21:14:56 +01:00
Felix Krause
b7828884bd Documentation fixes.
* Some typo fixes in code
 * nim documentation now generates API doc with source links
 * presenter now uses "" if a string starts with @ or `
 * Removed some outdated stuff
2016-01-24 19:15:50 +01:00
Felix Krause
d05971d5ac bench: run 100 times per test and return mean 2016-01-24 12:28:14 +01:00
Felix Krause
40e3e32f5d Build proper HTML documentation 2016-01-13 23:19:06 +01:00
Felix Krause
68f0ba0cc7 Added jester-based YAML parsing webservice
* Added server/server.nim
 * Fixed a problem in presenter that made it crash when
   outputting a root map to JSON
2016-01-05 21:34:07 +01:00
Felix Krause
dc1a3c0fe2 Can construct basic types and custom objects
* Added construct() procs for some basic types
 * Added macro make_serializable
2015-12-29 15:09:37 +01:00
Felix Krause
d828f4ddc5 Added benchmark. Fixed processing empty flow sets. 2015-12-29 00:14:47 +01:00
Felix Krause
24f9cf167f Added doc generation task to config.nims 2015-12-28 22:13:14 +01:00
Felix Krause
238faf82ab Source restructuring, added config.nims
* moved src/* to .
 * added config.nims to build library and run tests
 * reduced compiler warnings
2015-12-28 22:03:16 +01:00