SExpression::Decode::Marpa - S-expression parser using Marpa
This document describes version 0.001 of SExpression::Decode::Marpa (from Perl distribution SExpression-Decode-Marpa), released on 2020-04-10.
use SExpression::Decode::Marpa qw(from_sexp); my $data = from_sexp(q|((foo . 1) (bar . 2))|); # => [[foo=>1], [bar=>2]]
EARLY RELEASE.
Todo: wrap special values (e.g. nil, t, keyword symbol :foo, other symbols, vectors, lists). Convert to alist when appropriate.
Usage:
my $data = from_sexp($str);
Decode S-expresion in $str. Dies on error.
$str
Please visit the project's homepage at https://metacpan.org/release/SExpression-Decode-Marpa.
Source repository is at https://github.com/perlancar/perl-SExpression-Decode-Marpa.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SExpression-Decode-Marpa
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Data::SExpression, another S-expression parser based on Parse::Yapp.
SExpression::Decode::Regexp
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install SExpression::Decode::Marpa, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SExpression::Decode::Marpa
CPAN shell
perl -MCPAN -e shell install SExpression::Decode::Marpa
For more information on module installation, please visit the detailed CPAN module installation guide.