<commit_before># Copyright (C) 2009, <NAME>
# $Id$

=head1 NAME

Regex::P6Grammar - scaffolding compiler for NQP / Perl 6 grammars

=head1 DESCRIPTION

=cut

.namespace ['Regex';'P6Grammar';'Compiler']

.sub '' :anon :load :init
    load_bytecode 'PCT.pbc'
    load_bytecode 'p6regex.pbc'
    .local pmc p6meta, p6grammar
    p6meta = get_hll_global 'P6metaclass'
    p6grammar = p6meta.'new_class'('Regex::P6Grammar::Compiler', 'parent'=>'PCT::HLLCompiler')
    p6grammar.'language'('Regex::P6Grammar')
    $P0 = get_hll_namespace ['Regex';'P6Grammar';'Grammar']
    p6grammar.'parsegrammar'($P0)
    $P0 = get_hll_namespace ['Regex';'P6Grammar';'Actions']
    p6grammar.'parseactions'($P0)
.end

.sub 'main' :main
    .param pmc args_str

    $P0 = compreg 'Regex::P6Grammar'
    $P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')
    exit 0
.end<commit_msg>Switch P6Grammar to use protoobjects for parsegrammar and parseactions .<commit_after># Copyright (C) 2009, <NAME>
# $Id$

=head1 NAME

Regex::P6Grammar - scaffolding compiler for NQP / Perl 6 grammars

=head1 DESCRIPTION

=cut

.namespace ['Regex';'P6Grammar';'Compiler']

.sub '' :anon :load :init
    load_bytecode 'PCT.pbc'
    load_bytecode 'p6regex.pbc'
    .local pmc p6meta, p6grammar
    p6meta = get_hll_global 'P6metaclass'
    p6grammar = p6meta.'new_class'('Regex::P6Grammar::Compiler', 'parent'=>'PCT::HLLCompiler')
    p6grammar.'language'('Regex::P6Grammar')
    $P0 = get_hll_global ['Regex';'P6Grammar'], 'Grammar'
    p6grammar.'parsegrammar'($P0)
    $P0 = get_hll_global ['Regex';'P6Grammar'], 'Actions'
    p6grammar.'parseactions'($P0)
.end

.sub 'main' :main
    .param pmc args_str

    $P0 = compreg 'Regex::P6Grammar'
    $P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')
    exit 0
.end
{'fraction_non_alphanumeric': 0.16279069767441862, 'fraction_numerical': 0.04164413196322336, 'mean_word_length': 4.657492354740061, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1038216', 'n_tokens_mistral': 784, 'n_tokens_neox': 753, 'n_words': 142}