Fully automatic syntax highlighting for any grammar
Perl 6
Switch branches/tags
Nothing to show
Latest commit 7561779 May 23, 2017 @niner niner Add a MANIFEST
Permalink
Failed to load latest commit information.
lib/Grammar fix module import Jan 7, 2016
t Update to Perl 6.c and prepare for publishing Dec 30, 2015
.travis.yml Add Travis-CI configuration Oct 28, 2016
LICENSE Add a LICENSE Feb 28, 2015
MANIFEST Add a MANIFEST May 23, 2017
META6.json
README.md First working version Feb 28, 2015

README.md

TITLE

Grammar::Highlighter

SYNOPSIS

    use Grammar::Highlighter;
    use Whatever::Grammar::You::Like;

    my $highlighter = Grammar::Highlighter.new;
    my $parser = Whatever::Grammar::You::Like.new;
    say $parser.parse($string, :actions($highlighter)).ast.Str;

DESCRIPTION

Get automatic syntax highlighting for any grammar you provide.

Grammar::Highlighter is a generic syntax highlighter. You use it as an actions object for a grammar's parse method. It will assign a different color to all the grammar's tokens, rules and regexes. The generated parse tree stringifies to the original string with colors applied.

AUTHOR

Stefan Seifert nine@detonation.org