Module for formatting Perl6 code
Other
Switch branches/tags
Nothing to show
Latest commit 7b2a162 Apr 30, 2017 @jaffa4 committed on GitHub Merge pull request #7 from zoffixznet/patch-1
Use modern META filename
Permalink
Failed to load latest commit information.
lib merged paultcochrane's changes Nov 5, 2015
t
LICENSE
META6.json Use modern META filename Apr 25, 2017
README.md merged paultcochrane's changes Nov 5, 2015

README.md

Rakudo::Perl6::Format

Format Perl6 code.

Known limitations: if there is a BEGIN, there will not be any formatting. Also, if classes are imported from nqp.

Usage

use Rakudo::Perl6::Format;


my $f = Rakudo::Perl6::Format.new(); # create a new object
say $f.format({indentsize=>4},$content); # format using indentsize 4.

Only identation size can be set now.

Command line access:

$ perl6 format.p6 -h

$ perl6 format.p6 -is 4 \<Dagrammar.p6 \>formatted.p6