Update lib

This commit is contained in:
Aoran Zeng 2025-07-13 18:29:58 +08:00
parent 9042fb5134
commit 662898f628
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 16 additions and 22 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env raku
# ---------------------------------------------------------------
# File Name : CGenerator.rakumod
# File Name : Generator.rakumod
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# Created On : <2025-07-12>
@ -9,11 +9,11 @@
# Generates C code from raw string
# ---------------------------------------------------------------
unit module CGenerator;
unit module Generator;
use ConfigParser;
use Parser;
class CStringConverter {
my class CStringConverter {
method convert-char($char, $mode) {
given $mode {
@ -51,7 +51,7 @@ class CStringConverter {
}
class CVariableNameGenerator {
my class CVariableNameGenerator {
method generate($global-config, $section-config, $title) {
@ -95,7 +95,7 @@ class CVariableNameGenerator {
#| .h / .c @variables
class CVariableGenerator {
my class CVariableGenerator {
has @.variables;
has $.c-header-filename;

View File

Internal Server Error - Gitea: Git server for yexuejc
500 Internal Server Error

Gitea Version: 1.23.8

@ -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 {
}
}