feat(project): scripts line in project.trb and the static reader #557
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/512-scripts-line"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #512
Task
Script receivers 1/6 (epic #518): the
scriptsline ofproject.trband the static reader for it.What
std/project:ScriptFamilyandProject.scripts(pattern, receiver, from);Project.settings()prints each family back after the programs.compiler/src/project/scripts.trb:scriptPatternProblem(the D2 sentence) andmatchesScriptPattern(*stays inside one segment).Manifest.scriptsholds pattern, receiver, from and span;ScriptFamily.equalsignores the span sotorb manifest --checkstill compares the evaluated and the static reading.scriptsis a static word, so a computed argument is refused at that argument with the D1 text and the line is never evaluated; a malformed pattern is reported at the pattern with the D2 text. A pattern that matches no file is no diagnostic.docs/standard-library/project.mdand itsskills/copy.Test
compiler/tests/script-patterns.test.trbfor the matcher;Scriptsgroup incompiler/tests/project.test.trb(reader, print-back agreement, D1, D2, missing argument).torbbinary in the worker); forge CI is the check.Follow-ups
[loop:torbscript] CI note:
tools/release-sync and tools/registry (linux-x64)failed on52f055c7with 511 passed, 1 failed:tools/registry/tests/commands.test.trb:356(a file: registry has no accounts ...,loginToDirectory.code == 1). Likely unrelated to this change: the same job passed on the base commit6a8bb0199(run 2113) and on PRs #554/#555, the sibling assertionownerOfDirectoryin the same test (same directory, same manifest path) passed, andtorb logindoes not read thescriptsline;loginToDirectoryis the only call in that test that feeds stdin. Not rerun (no rerun endpoint for the loop token); a rerun of the job decides it. Remaining checks (gates, tier A, ...) were still running at 20:45 UTC.52f055c75fd05f465d89Checklist (head
d05f465):script-patterns.test.trb(matcher, every D2 refusal) andScriptsgroup inproject.test.trb(reader order+span, print-back agreement, span-insensitive equals, D1, D2 at pattern with line:col, no-match, missing argument). CI green on this exact head (gates, tier A, tools/registry, pdisc). The earlier registry failure Orion noted was on52f055c7; it is green here.segmentMatchestakes prefix, then suffix from the remainder, so no overlap (a*avsais false);*stays within a segment via split on/and equal segment count.scriptsinstaticWordsgives D1 and no evaluation;scriptProblemsOfreports D2 at the pattern string, text matches SCRIPT-RECEIVERS.md section 9 D2 (no note in the table).scriptsline added to any repo project.trb.scriptsline reads and prints back as before.std/projectdoc and skills copies updated, summaries/indexes consistent (pdisc green).Non-blocking: none.