Vindaar
1babb26616
move echo statement for internal stacktrace into if branch
...
No need to echo internal stacktrace, if there is no parent to echo for.
2018-10-12 16:00:39 +02:00
Vindaar
8a7750cb6c
make sure to also append '\0' for JS as well as C backend
...
Also remove now unnecessary `os` (was imported for internal
`assertStringEqual` test) module import in `tserialization`.
2018-10-12 16:00:39 +02:00
Vindaar
3eb006be2d
Revert "fix for null terminator not accessable in strings anymore"
...
This reverts commit 07c59e2d2d90b3123973814ebc9cf974a0bf4baf.
2018-10-12 16:00:39 +02:00
Vindaar
d26a57fe93
append null terminator to source when creating `StringSource`
...
This makes editing the lexer unnecessary.
2018-10-12 16:00:39 +02:00
Vindaar
ba06599b7d
echo internal stack trace if not release, check if parent is nil
2018-10-12 16:00:39 +02:00
Vindaar
06ddc9eb13
Revert "fix internal `IndexError` in `lex.nim` due to null term n.a."
...
This reverts commit e147df31718bb5bcd27c4067314dc40c2ecc9348.
2018-10-12 16:00:39 +02:00
Vindaar
d19539a231
fix internal `IndexError` in `lex.nim` due to null term n.a.
...
Since the null terminator is not available anymore we need to be
careful how we access strings in the lexer.
This should probably be solved in a nicer and more scalable way! :/
2018-10-12 16:00:39 +02:00
Vindaar
db1a2c4041
allow echoing internal stacktrace if compiling with `d:debug`
...
`internalError` and `yAssert` now allow to echo the internal stack
traces if the `d:debug` compile flag is set.
2018-10-12 16:00:39 +02:00
Vindaar
048f6615f5
fix for null terminator not accessable in strings anymore
2018-10-12 16:00:39 +02:00
Alexander Ivanov
566e28dcc5
Make it work with new not nil
2018-10-12 16:00:39 +02:00
flyx
e9658f22ec
Fixes #49
2017-11-14 15:52:11 +01:00
Felix Krause
f017a57d86
Made NimYAML compile for JS
2017-03-29 17:14:50 +02:00
Felix Krause
b15f3dbae9
Even more fixes to event output
2017-02-14 22:22:56 +01:00
Felix Krause
c581f1acc2
Added YamlParser.display()
...
* renders events with proper tag and anchor names
2017-02-14 19:40:40 +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
5ebde01ca5
Made tjson and tserialization compile for JS
2017-02-13 17:10:56 +01:00
Felix Krause
0ef9cbf535
Moved private sources to yaml/private
2017-02-06 20:39:04 +01:00