Skip to content

Commit b33dc05

Browse files
committed
first shot at removing P6Regex.pir. Diws with "Can only use get_how on a RakudoObject"
1 parent 9e6576b commit b33dc05

File tree

3 files changed

+12
-53
lines changed

3 files changed

+12
-53
lines changed

build/Makefile.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ HLL_SOURCES = \
7070
src/HLL/SerializationContextBuilder.pm \
7171

7272
P6REGEX_SOURCES = \
73-
src/Regex/P6Regex.pir \
7473
src/Regex/P6Regex/Grammar.pm \
7574
src/Regex/P6Regex/Actions.pm \
7675
src/Regex/P6Regex/Compiler.pm \
@@ -310,7 +309,8 @@ $(STAGE1)/$(P6REGEX_PBC): $(STAGE0_PBCS) $(STAGE1)/$(CORE_SETTING_PBC) $(P6REGEX
310309
--target=pir --output=$(STAGE1)/$(P6REGEX_C) \
311310
src/Regex/P6Regex/Compiler.pm
312311
$(PARROT) --include=$(STAGE1) -o $(STAGE1)/$(P6REGEX_PBC) \
313-
src/Regex/P6Regex.pir
312+
$(STAGE1)/$(P6REGEX_C)
313+
314314

315315
$(STAGE1)/$(NQP_PBC): $(STAGE0_PBCS) $(STAGE1)/$(CORE_SETTING_PBC) $(NQP_SOURCES)
316316
$(MKPATH) $(STAGE1)/gen
@@ -379,7 +379,8 @@ $(STAGE2)/$(P6REGEX_PBC): $(STAGE1_PBCS) $(STAGE2)/$(CORE_SETTING_PBC) $(P6REGEX
379379
--target=pir --output=$(STAGE2)/$(P6REGEX_C) \
380380
src/Regex/P6Regex/Compiler.pm
381381
$(PARROT) --include=$(STAGE2) -o $(STAGE2)/$(P6REGEX_PBC) \
382-
src/Regex/P6Regex.pir
382+
$(STAGE2)/$(P6REGEX_C)
383+
383384

384385
$(STAGE2)/$(NQP_PBC): $(STAGE0_PBCS) $(STAGE1)/$(CORE_SETTING_PBC) $(NQP_SOURCES)
385386
$(MKPATH) $(STAGE1)/gen
@@ -433,7 +434,6 @@ $(OPS_DIR)/$(OPS)$(LOAD_EXT): $(OPS_DIR)/$(OPS_SOURCE) $(DYNPMC)
433434
bootstrap-files: $(STAGE2_PBCS) src/stage2/$(CORE_SETTING_NQP)
434435
$(PERL) build/gen_bootstrap.pl src/Regex.pir >src/stage0/Regex-s0.pir
435436
$(PERL) build/gen_bootstrap.pl src/HLL.pir >src/stage0/HLL-s0.pir
436-
$(PERL) build/gen_bootstrap.pl src/Regex/P6Regex.pir >src/stage0/P6Regex-s0.pir
437437
$(PERL) build/gen_bootstrap.pl src/stage2/$(NQP_COMBINED_PIR) >src/stage0/NQP-s0.pir
438438
$(PERL) build/gen_bootstrap.pl src/stage2/$(CORE_SETTING_PIR) >src/stage0/NQPCORE.setting-s0.pir
439439
$(PERL) build/gen_bootstrap.pl src/stage2/$(NQP_MO_PIR) >src/stage0/NQPMO-s0.pir

src/Regex/P6Regex.pir

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/Regex/P6Regex/Compiler.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
class Regex::P6Regex::Compiler is HLL::Compiler {
22
}
3+
4+
sub MAIN(@ARGS) {
5+
my $p6regex := Regex::P6Regex::Compiler.new();
6+
$p6regex.language('Regex::P6Regex');
7+
$p6regex.parsegrammar(Regex::P6Regex::Grammar);
8+
$p6regex.parseactions(Regex::P6Regex::Actions);
9+
$p6regex.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1'));
10+
}

0 commit comments

Comments
 (0)