Added new string template formatter

- Based on a template formatter I have in used/evolved in other projects.
- Will eventually replace the current token formatter used in untyped code.
- Has some x86 simd support.. (opt-in if avail).
This commit is contained in:
ed committed 2026-10-16 13:30:42 -04:00
1 parent 8ba02de6ed
commit b5b7b9ab4b
17 files changed
+1771 -14

No files matched your search

+5
View File
@@ -38,10 +38,15 @@ internal void expect_parse_result(gen::Code result, gen::ParseInfo* info, gen::C
expect(info->lexed.messages == nullptr && info->messages == nullptr, label);
}
#include "dependencies/strings.cpp"
#include "dependencies/simd.cpp"
int main()
{
using namespace gen;
Context ctx = {}; init(&ctx);
expect_text_template(GEN_PRINTF_MAXLEN);
expect_simd_lanes();
Opts_def_type type_opts = {};
type_opts.specifiers = def_specifiers(args(Spec_Const, Spec_Ptr));