Ethiraric
23c0b3c547
Move load_from_*
functions in Yaml
.
...
This would make more sense in user code:
```rs
Yaml::load_from_str("foo"); // Explicit that we're parsing YAML
load_from_str("foo"); // Too implicit, too generic, may be from another
lib
```
Plus, this mirrors `MarkedYaml`'s behavior.
2024-07-03 00:55:41 +02:00
Ethiraric
d2caaf2ab3
Prepare the ground for annotated parsing.
...
* Make `YamlLoader` generic on the type of the `Node`. This is required
because deeper node need to have annotations too.
* Add a `LoadableYamlNode` trait, required for YAML node types to be
loaded by `YamlLoader`. It contains methods required by `YamlLoader`
during loading.
* Implement `LoadableYamlNode` for `Yaml`.
* Take `load_from_str` out of `YamlLoader` for parsing non-annotated
nodes. This avoids every user to specify the generics in
`YamlLoader::<Yaml>::load_from_str`.
2024-07-03 00:55:41 +02:00
Ethiraric
30b713d7a7
yaml-rust2
-> saphyr
2024-04-02 18:49:52 +02:00
David Aguilar
cd2028aca7
parser: add Parser::new_from_str(&str)
2024-03-25 00:06:10 +01:00
Ethiraric
eed3433841
Update licence, readme, doc.
2024-02-08 07:12:14 +01:00
Ethiraric
be6a05916f
Add debugging helpers.
2024-01-23 00:19:04 +01:00
Ethiraric
fd37ebd6e5
Clippy set to pedantic.
2023-08-14 16:11:33 +02:00
David Tolnay
f26a44bcdc
Format with rustfmt 0.99.4
2018-09-15 09:49:08 -07:00
Charlie Ozinga
dc2e0a75c6
Merge branch 'master' of https://github.com/chyh1990/yaml-rust into chyh1990
2017-07-10 10:05:43 -06:00
Christian Hofer
505b1d6ec1
Always pass events by value
...
- The EventReceiver gets ownership of events
- Breaks compatilibility with previous interface
2017-06-19 15:41:26 +02:00
Charlie Ozinga
80f967bc09
Remove extraneous debug output from test
2017-05-11 23:36:51 -06:00
Charlie Ozinga
06c9b22357
Fix nested arrays, emit compact in-line
2017-05-11 23:29:41 -06:00
Charlie Ozinga
ff8572352d
Rebased and resolved conflicts with the following:
...
https://github.com/chyh1990/yaml-rust/pull/66
https://github.com/chyh1990/yaml-rust/pull/62 (closed in favor of 66)
2017-05-11 12:36:38 -06:00
David Tolnay
37dc15badb
Fix clippy complaints
2017-05-08 11:35:53 -07:00
Yuheng Chen
87539f852d
remove trailing space
2015-06-30 00:31:22 +08:00
Yuheng Chen
e4862a7c8f
Add tag:yaml.org,2002 parsing
2015-05-30 22:39:50 +08:00
Yuheng Chen
064f10beee
Add scan_uri_escapes
2015-05-30 18:49:54 +08:00
Yuheng Chen
68810253e8
Add alias event
2015-05-29 02:26:37 +08:00
Yuheng Chen
3d7a97ad32
Add partial anchor support
2015-05-29 01:56:03 +08:00
Yuheng Chen
b6acd869eb
Fix parsing bugs
...
1. empty key & value support
2. OnNull handling in test
2015-05-27 23:04:03 +08:00
Yuheng Chen
ef020f0f95
Change empty scalar definition
2015-05-27 21:57:42 +08:00
Yuheng Chen
616ebfa378
Refactory YAML document loader
2015-05-27 14:57:44 +08:00
Yuheng Chen
89b9c6b1db
Add block_scalar
2015-05-27 00:29:40 +08:00
Yuheng Chen
1894d11a26
Add multidoc support
2015-05-26 16:41:35 +08:00
Yuheng Chen
6233d8cf68
Add test spectest
2015-05-26 15:52:02 +08:00