We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ace6d6 commit d014f94Copy full SHA for d014f94
src/Regex/P6Regex/Compiler.pm
@@ -1,10 +1,12 @@
1
class Regex::P6Regex::Compiler is HLL::Compiler {
2
}
3
4
-sub MAIN(@ARGS) {
+sub MAIN(@ARGS?) {
5
+ if @ARGS {
6
my $p6regex := Regex::P6Regex::Compiler.new();
7
$p6regex.language('Regex::P6Regex');
8
$p6regex.parsegrammar(Regex::P6Regex::Grammar);
9
$p6regex.parseactions(Regex::P6Regex::Actions);
10
$p6regex.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1'));
11
+ }
12
0 commit comments