<commit_before>=head1 TITLE

PGE - the Parrot/Perl Grammar Engine

=head2 Description

This is the base file for the grammar engine.  It basically combines
(via .include) each of the separate PGE modules into a single compilation
unit, and then calls the "__onload" subroutines for each.  We do
this because as of this writing (2005-May-03) the semantics of
multiple @LOAD pragmas in a single compilation unit aren't well
defined.

=cut

.namespace [ "PGE" ]

.sub "__onload" @LOAD
    .local pmc load
    load_bytecode "Data/Escape.imc"
    load = find_global "PGE::TokenHash", "__onload"
    load()
    load = find_global "PGE::Exp", "__onload"
    load()
    load = find_global "PGE::Match", "__onload"
    load()
    load = find_global "PGE::P6Rule", "__onload"
    load()
.end

.include "compilers/pge/PGE/TokenHash.pir"
.include "compilers/pge/PGE/Exp.pir"
.include "compilers/pge/PGE/Match.pir"
.include "compilers/pge/PGE/P6Rule.pir"<commit_msg>There is a precompiled version of Data::Escape, should get a marginal performance increase if we use that instead. All p6rules tests still pass.<commit_after>=head1 TITLE

PGE - the Parrot/Perl Grammar Engine

=head2 Description

This is the base file for the grammar engine.  It basically combines
(via .include) each of the separate PGE modules into a single compilation
unit, and then calls the "__onload" subroutines for each.  We do
this because as of this writing (2005-May-03) the semantics of
multiple @LOAD pragmas in a single compilation unit aren't well
defined.

=cut

.namespace [ "PGE" ]

.sub "__onload" @LOAD
    .local pmc load
    load_bytecode "Data/Escape.pbc"
    load = find_global "PGE::TokenHash", "__onload"
    load()
    load = find_global "PGE::Exp", "__onload"
    load()
    load = find_global "PGE::Match", "__onload"
    load()
    load = find_global "PGE::P6Rule", "__onload"
    load()
.end

.include "compilers/pge/PGE/TokenHash.pir"
.include "compilers/pge/PGE/Exp.pir"
.include "compilers/pge/PGE/Match.pir"
.include "compilers/pge/PGE/P6Rule.pir"
{'fraction_non_alphanumeric': 0.10652920962199312, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 3.9346246973365617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2932275', 'n_tokens_mistral': 718, 'n_tokens_neox': 696, 'n_words': 231}