Skip to content

Commit 2300c30

Browse files
committed
Fix prefix
1 parent 498eabf commit 2300c30

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tool/rawstr4c/bin/rawstr4c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ sub MAIN(
8181
exit(1);
8282
}
8383

84-
my $parser = Parser::Parser.new($markdown-file.Str);
84+
my $parser = Rawstr4c::Parser::Parser.new($markdown-file.Str);
8585
$parser.parse;
8686

87-
my $generator = Generator::Generator.new($parser);
87+
my $generator = Rawstr4c::Generator::Generator.new($parser);
8888

8989
if ($debug.defined) {
9090
given $debug {

tool/rawstr4c/lib/Rawstr4c/Config.rakumod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SectionConfig {
3838
}
3939
# 如果都没找到,生成一个新值
4040
# 当 $default 为空时,生成的是 RS4C-Nil
41-
return Parser::ConfigItem's-Value.new($default);
41+
return Rawstr4c::Parser::ConfigItem's-Value.new($default);
4242
}
4343

4444

@@ -55,7 +55,7 @@ class SectionConfig {
5555
if ! $default.defined {
5656
# say "DEBUG: Key <$key> is undefined";
5757
}
58-
return Parser::ConfigItem's-Value.new($default);
58+
return Rawstr4c::Parser::ConfigItem's-Value.new($default);
5959
}
6060

6161

@@ -94,7 +94,7 @@ class SectionConfig {
9494
$postfix = $config-postfix.string-value();
9595
}
9696

97-
return Parser::ConfigItem's-Value.new($postfix);
97+
return Rawstr4c::Parser::ConfigItem's-Value.new($postfix);
9898
}
9999

100100
#| RS4C-Bool
@@ -121,7 +121,7 @@ class SectionConfig {
121121
} else {
122122
$lang = $config-language.string-value;
123123
}
124-
return Parser::ConfigItem's-Value.new($lang);
124+
return Rawstr4c::Parser::ConfigItem's-Value.new($lang);
125125
}
126126

127127

@@ -137,7 +137,7 @@ class SectionConfig {
137137
} else {
138138
$name = $config-name.string-value;
139139
}
140-
return Parser::ConfigItem's-Value.new($name);
140+
return Rawstr4c::Parser::ConfigItem's-Value.new($name);
141141
}
142142

143143
#| RS4C-Bool
@@ -163,7 +163,7 @@ class SectionConfig {
163163
}
164164
$parent = $parent.parent;
165165
}
166-
return Parser::ConfigItem's-Value.new($current-namespace);
166+
return Rawstr4c::Parser::ConfigItem's-Value.new($current-namespace);
167167
}
168168

169169

tool/rawstr4c/lib/Rawstr4c/Generator.rakumod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ my class CVariableNameGenerator {
5858

5959
method generate($section) {
6060

61-
my $config = Config::SectionConfig.new($section);
61+
my $config = Rawstr4c::Config::SectionConfig.new($section);
6262

6363
my $prefix = $config.prefix.string-value;
6464
my $postfix = $config.postfix.string-value;
@@ -222,7 +222,7 @@ class Generator {
222222
my $title = $section.title;
223223
my $rawstr = $section.codeblock;
224224

225-
my $config = Config::SectionConfig.new($section);
225+
my $config = Rawstr4c::Config::SectionConfig.new($section);
226226

227227
my $debug-in-config = $config.debug.bool-value;
228228

0 commit comments

Comments
 (0)