Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emitter formatting for boolean.pm values #25

Open
ingydotnet opened this issue Jan 20, 2020 · 1 comment
Open

Emitter formatting for boolean.pm values #25

ingydotnet opened this issue Jan 20, 2020 · 1 comment

Comments

@ingydotnet
Copy link
Contributor

ingydotnet commented Jan 20, 2020

YAML::XS style seems better.

★ ~/src/+pegex-parser/pegex-json-pm master $ perl -Mboolean -MYAML::PP -E 'say YAML::PP->new(schema => ['Perl'])->dump_string(true)'
--- !perl/scalar:boolean
=: 1

★ ~/src/+pegex-parser/pegex-json-pm master $ perl -Mboolean -MYAML::XS -E 'say YAML::XS::Dump(true)'
--- !!perl/scalar:boolean 1
@ingydotnet
Copy link
Contributor Author

★ ~/src/+pegex-parser/pegex-json-pm master $ perl -Mboolean -MYAML::XS -E 'say YAML::XS::Dump(\\\1)'
--- !!perl/ref
=: !!perl/ref
  =: !!perl/ref
    =: 1

★ ~/src/+pegex-parser/pegex-json-pm master $ perl -Mboolean -MYAML::XS -E 'say YAML::XS::Dump(\true)'
--- !!perl/ref
=: !!perl/scalar:boolean 1

★ ~/src/+pegex-parser/pegex-json-pm master $ perl -Mboolean -MYAML::XS -E 'say YAML::XS::Dump(\\true)'
--- !!perl/ref
=: !!perl/ref
  =: !!perl/scalar:boolean 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant