class NQP::Compiler is HLL::Compiler {
}

sub MAIN(@ARGS) {
    # Create and configure compiler object.
    my $nqpcomp := NQP::Compiler.new();
    $nqpcomp.language('nqp');
    $nqpcomp.parsegrammar(NQP::Grammar);
    $nqpcomp.parseactions(NQP::Actions);
    hll-config($nqpcomp.config);
    
    # Add extra command line options.
    my @clo := $nqpcomp.commandline_options();
    @clo.push('parsetrace');
    @clo.push('setting=s');
    @clo.push('setting-path=s');
    @clo.push('module-path=s');
    @clo.push('vmlibs=s');
    @clo.push('no-regex-lib');
    @clo.push('old-regex-lib');
    
    # Enter the compiler.
    $nqpcomp.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1'));

    # Close event logging
    $nqpcomp.nqpevent();
}

class NQP::Compiler is HLL::Compiler {
}

# Create and configure compiler object.
my $nqpcomp := NQP::Compiler.new();
$nqpcomp.language('nqp');
$nqpcomp.parsegrammar(NQP::Grammar);
$nqpcomp.parseactions(NQP::Actions);
hll-config($nqpcomp.config);

# Add extra command line options.
my @clo := $nqpcomp.commandline_options();
@clo.push('parsetrace');
@clo.push('setting=s');
@clo.push('setting-path=s');
@clo.push('module-path=s');
@clo.push('vmlibs=s');
@clo.push('no-regex-lib');
@clo.push('old-regex-lib');

sub MAIN(@ARGS) {
    # Enter the compiler.
    $nqpcomp.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1'));

    # Close event logging
    $nqpcomp.nqpevent();
}

Make NQP compreg when loaded as a module.
Make NQP compreg when loaded as a module.
