Cooklang
NAME
Cooklang - Raku Cooklang parser
SYNOPSIS
use Cooklang;
...
my $source = "some Cooklang text";
my $recipe = Cooklang.new( recipe => $source );
...
my $file = 'recipe.cook';
my $recipe = Cooklang.new( recipe_file => $file );
...
my $metadata = $recipe.metadata;
my $ingredients = $recipe.ingredients;
my $steps = $recipe.steps;
my $ast = $recipe.ast;
my $ast_tree = $recipe.match;VERSION
version 1.0.3AVAILABILITY
Cooklang is implemented in Raku using grammer and grammar action to parse and build AST tree.
DESCRIPTION
For the Cooklang syntax, see Cooklang.
DOCUMENTATION
Cooklang documentation is available as POD6. You can run raku --doc from a shell to read the documentation:
% raku --doc lib/Cooklang.rakumod
% raku --doc=Markdown lib/Cooklang.rakumod # zef install Pod::To::Markdown
% raku --doc=HTML lib/Cooklang.rakumod # zef install Pod::To::HTMLINSTALLATION
Installing Cooklang is straightforward.
Installation with zef from CPAN6
If you have zef, you only need one line:
% zef install CooklangInstallation with zef from git repository
% zef install https://github.com/uniejo/cooklang-raku.gitCOMMUNITY
AUTHOR
Erik Johansen
COPYRIGHT
Erik Johansen 2023 -
LICENSE
This software is licensed under the same terms as Perl itself.