📝 fix typo
Nasal Interpreter Test / linux-x86_64 (push) Failing after 14s Details
Nasal Interpreter Test / mac-aarch64 (push) Has been cancelled Details

This commit is contained in:
ValKmjolnir 2025-03-08 01:45:54 +08:00
parent 065f6ae162
commit a7a2a0a369
3 changed files with 9 additions and 9 deletions

View File

@ -105,7 +105,7 @@ std::ostream& logo(std::ostream& out) {
<< " - http://fgprc.org\n"
<< " - http://fgprc.org.cn\n"
<< "\n"
<< "input <nasal-format -h> to get help.\n\n";
<< "input <nasal -h> to get help.\n\n";
return out;
}

View File

@ -2,7 +2,7 @@
namespace nasal {
var builtin_regex_match(context* ctx, gc* ngc) {
var builtin_regex_match(context* ctx, gc* ngc) noexcept {
auto source = ctx->localr[1];
auto reg_str = ctx->localr[2];
if (!source.is_str()) {
@ -20,7 +20,7 @@ var builtin_regex_match(context* ctx, gc* ngc) {
return zero;
}
var builtin_regex_search(context* ctx, gc* ngc) {
var builtin_regex_search(context* ctx, gc* ngc) noexcept {
auto source = ctx->localr[1];
auto reg_str = ctx->localr[2];
if (!source.is_str()) {
@ -38,7 +38,7 @@ var builtin_regex_search(context* ctx, gc* ngc) {
return nil;
}
var builtin_regex_replace(context* ctx, gc* ngc) {
var builtin_regex_replace(context* ctx, gc* ngc) noexcept {
auto source = ctx->localr[1];
auto reg_str = ctx->localr[2];
auto fmt = ctx->localr[3];
@ -64,7 +64,7 @@ var builtin_regex_replace(context* ctx, gc* ngc) {
return ngc->newstr(source.str());
}
var builtin_regex_match_all(context* ctx, gc* ngc) {
var builtin_regex_match_all(context* ctx, gc* ngc) noexcept {
auto source = ctx->localr[1];
auto reg_str = ctx->localr[2];
if (!source.is_str()) {

View File

@ -8,10 +8,10 @@
namespace nasal {
var builtin_regex_match(context*, gc*);
var builtin_regex_search(context*, gc*);
var builtin_regex_replace(context*, gc*);
var builtin_regex_match_all(context*, gc*);
var builtin_regex_match(context*, gc*) noexcept;
var builtin_regex_search(context*, gc*) noexcept;
var builtin_regex_replace(context*, gc*) noexcept;
var builtin_regex_match_all(context*, gc*) noexcept;
extern nasal_builtin_table regex_lib_native[];