okenized JSON
Using modules:
=over
=item *
L<Pistachio::Language>
=item *
L<https://github.com/joeldalley/lib-JBD> (JBD::JSON).
=back
In this example, JBD::JSON is used to parse JSON text int
n types JBD::JSON produces to CSS definitions.
use strict;
use warnings;
use Pistachio;
use Pistachio::Token;
use Pistachio::Language;
use JBD::JSON 'std_parse';
# Argument: JSON input text.
Returns arrayref of Pistachio::Tokens.
my $tokens = sub {
my $tokens = std_parse 'json_text', $_[0];
[map Pistachio::Token->new($_->type, $_->value), @$tokens];
};
# Argument: a token t