Ingy döt Net

Results 172 comments of Ingy döt Net

Pegex works in JS thus a Pegex Pod grammar would work in JS as well as Perl. (Any language with a regex engine).

Also functions defined using outer parens rather than braces like: ``` do-it() ( foo=(xyz) ) do-also() ( foo=xyz ) ``` should not trigger these warnings. I use parens for defining...

Here's some general heuristics: * Use plain if possible * For multiline with printable chars, use literal. * For things that need quoting but don't need any escapes, use single...

Also `yamlpp-load-dump --preserve 0` emits `---` at start. This is preferred to state (not too loudly) that this is YAML. Also start top level scalars on the `---` line ```...

Underscores are not part of yaml 1.2 `!!int` tag resolution. My suggestion would be to not match them by default (if you are claiming to be a YAML 1.2 framework)....

@mathieucaroff I think that's exactly the same as: ``` import yaml content = """- a - { b: 0, c: 10 } - d """ node = yaml.compose(content) print(node) ```

We should in general be moving pyyaml and libyaml closer towards 1.2 (in ways that don't conflict with 1.3 plans). We should probably move forward with a fix here. Any...

This is planned to be a non-default option in PyYAML 6.1. See https://github.com/yaml/pyyaml/projects/9 No ETA for when this will be released.

Have a look at https://pypi.org/project/pyyaml-future/ ( https://github.com/yaml/pyyaml-future ). It's a hack I made last year to do some things that might become (a configurable (not default)) part of pyyaml in...

The short answer to your query is that in this case libyaml is right and pyyaml is wrong. https://play.yaml.io/main/parser?input=ImJhciIJ shows the results of 14 YAML parsers, and PyYAML, Ruamel (fork...