Fix generated files destination

This commit is contained in:
Aoran Zeng
2025-07-14 01:32:58 +08:00
parent 64513e8d15
commit bd45eff13c
3 changed files with 29 additions and 22 deletions

View File

@@ -4,7 +4,7 @@
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# Created On : <2025-07-12>
# Last Modified : <2025-07-13>
# Last Modified : <2025-07-14>
#
# rawstr4c.md parsing
# ---------------------------------------------------------------
@@ -107,8 +107,9 @@ my class Config {
Global dom code block. code block Section dom
Parser :
- $global-config
- @sections ( $section)
- IO::Path $input-file
- Hash $global-config
- @sections is Array[Hash] ( $section)
$section Hash:
- title
@@ -117,11 +118,13 @@ my class Config {
- config
)
class Parser {
has $.input-file is rw;
has $.global-config;
has @.sections;
method new() {
method new(:$input-file) {
self.bless(
:$input-file,
global-config => Config.new(),
sections => []
);
@@ -139,7 +142,8 @@ class Parser {
return False;
}
method parse($content) {
method parse() {
my $content = $.input-file.slurp;
my @lines = $content.lines;
my $current-section;