Tecton + support for String operations - #502
Merged
BosqueLanguage merged 12 commits intoAug 31, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Tecton currently performs an invalid hard-coded lookup and fails for most primitive types.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds Unicode String interpolation and regex support while extending Tecton component generation.
Changes:
- Implements FString parsing, checking, C++ emission, and execution.
- Adds String regex/type-alias support using Boost ICU.
- Extends Tecton formats and renames regex BAPI declarations.
File summaries
| File | Description |
|---|---|
test/typecheck/misc_exps/interpolate.test.js |
Tests String interpolation checking. |
test/typecheck/misc_exps/from.test.js |
Tests String conversions. |
test/typecheck/literals/fstring.test.js |
Tests FString typing. |
test/stdlib/stdlib_nf.ts |
Links regex and ICU libraries. |
test/parser/misc_exps/interpolate.test.js |
Tests String interpolation parsing. |
test/parser/literals/fstring.test.js |
Tests FString parsing. |
test/documentation/docs_nf.ts |
Links documentation test binaries. |
test/cpprun/misc_exps/interpolate.test.js |
Tests String interpolation execution. |
test/cpprun/misc_exps/from.test.js |
Tests conversion execution. |
test/cpprun/cpprun_nf.ts |
Updates execution-test linkage. |
test/cpprun/constructor/type_alias_strings.test.js |
Tests constrained String aliases. |
test/cppemit/misc_exps/interpolate.test.js |
Tests interpolation emission. |
test/cppemit/misc_exps/from.test.js |
Tests conversion emission. |
test/cppemit/literals/fstring.test.js |
Tests FString emission. |
src/tecton/tecton.bsq |
Adds type-context generation. |
src/tecton/prompts.bsq |
Removes obsolete prompt support. |
src/tecton/components.bsq |
Adds primitive component formats. |
src/tecton/codecontext.bsq |
Clarifies generic map result type. |
src/cmd/bosque.ts |
Links Boost and ICU. |
src/bsqir/irdecls.bsq |
Renames regex declarations. |
src/bsqir/irassembly.bsq |
Uses renamed regex declarations. |
src/backend/irdefs/irsupport.ts |
Emits renamed BAPI records. |
src/backend/irdefs/irbody.ts |
Corrects String interpolation tag. |
src/backend/irdefs/irassembly.ts |
Updates BAPI serialization. |
src/backend/ircemit/cppemit.ts |
Implements String and regex emission. |
build/runcpp/runtime/bsqir/parser.cpp |
Completes large buffer parsing flow. |
build/runcpp/core/strings.h |
Uses Boost regex matching. |
build/runcpp/common.h |
Includes Boost regex headers. |
build/runcpp/common.cpp |
Handles disabled Boost exceptions. |
build/Makefile |
Adds Boost and ICU linkage. |
Review details
Files not reviewed (1)
- test/cppemit/misc_exps/interpolate.test.js: Generated file
- Files reviewed: 29/30 changed files
- Comments generated: 3
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
added 2 commits
August 31, 2026 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FString -- support and tests
String regex -- support and tests
Cleanup for tecton