Update lib

This commit is contained in:
Aoran Zeng
2025-07-13 18:29:58 +08:00
parent 9042fb5134
commit 662898f628
2 changed files with 16 additions and 22 deletions

View File

@@ -9,14 +9,12 @@
# rawstr4c.md parsing
# ---------------------------------------------------------------
unit module Rawstr4C;
unit module Parser;
# 不能用 Bool只能用 Boolean
#| Bool Boolean
my enum ConfigValueType <String Mode Boolean>;
#
# @brief 配置项的值
#
#|
my class ConfigValue {
has ConfigValueType $.type;
has $.raw-value;
@@ -74,9 +72,8 @@ my class ConfigValue {
}
#
# @brief 承载 config items 的容器
#
#| config items
my class Config {
has %.items;
@@ -100,9 +97,7 @@ my class Config {
}
}
=begin comment
:
#|( :
1. Global dom
2. Section dom
@@ -111,15 +106,14 @@ my class Config {
Parser :
- $global-config
- @sections
- @sections ( $section)
section :
$section Hash:
- title
- level
- raw-string
- config (Config )
=end comment
- config
)
class Parser {
has $.global-config;
has @.sections;