=pod

=encoding utf8

=head1 NAME

YAMLScript - Program in YAML

=head1 SYNOPSIS

A YAML file:

    # food.yaml
    fruit:
    - apple
    - banana
    nuts:
    - cashew
    - drupe

A YAMLScript file:

    # data.ys
    !yamlscript/v0/data

    foods:: load("food.yaml")
    numbers:: 6..9

Perl code:

    # script.pl
    use strict; use warnings;
    use YAMLScript;
    use IO::All;
    use Data::Dumper qw(Dumper);
    $Data::Dumper::Indent = 1;
    $Data::Dumper::Terse = 1;

    my $ys = io('data.ys')->all;
    my $data = YAMLScript->new->load($ys);

    print Dumper($data);

Run it:

    $ perl script.pl
    {
      'foods' => {
        'fruit' => [
          'apple',
          'banana'
        ],
        'nuts' => [
          'cashew',
          'drupe'
        ]
      },
      'numbers' => [
        6,
        7,
        8,
        9
      ]
    }

=head1 DESCRIPTION

B<YAMLScript> is a programming language that uses YAML as a base syntax.

See L<https://yamlscript.org|https://yamlscript.org> for more info.

Proper docs coming soon.

=head1 SEE ALSO

=over

=item * L<YAMLScript Site|https://yamlscript.org>

=item * L<YAML|https://yaml.org>

=item * L<Clojure|https://clojure.org>

=back

=head1 AUTHORS

=over

=item * Ingy döt Net L<ingy@ingy.net|mailto:ingy@ingy.net>

=item * José Joaquín Atria L<jjatria@cpan.org|mailto:jjatria@cpan.org>

=back

=head1 COPYRIGHT AND LICENSE

Copyright 2022-2023 by Ingy döt Net

This is free software, licensed under:

The MIT (X11) License

=cut
