AtlatestRepositorysigil-doc
sigil-doc / tree / test / transcripts / sd-p7construction-before.txt
1
SD_P7_CONSTRUCTION_DUMP v12
base-sha: 6d090f36e07236c8ee09044f60cdb19f932c4afd3
tree-state: 2 modified paths4
compiler: [33msigil[39m 0.18.3 (sigil-lang 0.18.3-dev+0ed19fd1)5
population: 22 manuscripts, derived by: find book test -name '*.sgd' | sort6
cache: isolated (fresh XDG_CACHE_HOME per run; cold for the first manuscript, warm after)7
=== book/practical-sigil/01-useful-first-script.sgd8
(document (kind chapter) (title "A Useful First Script") (authors "David Wilson") (children (section (id "first-script") (title (text "Begin with a Question" (source "book/practical-sigil/01-useful-first-script.sgd" 78 4 1 2143))) (children (paragraph (children (text "Small programs are where a language earns trust. We will craft a task report that reads a plain text file, counts unfinished work, and prints a useful summary. It is modest enough to understand in one sitting, but real enough to exercise files, strings, lists, functions, and command-line behavior." (source "book/practical-sigil/01-useful-first-script.sgd" 132 6 1 298))) (source "book/practical-sigil/01-useful-first-script.sgd" 132 6 1 298)) (paragraph (children (text "Create a file named " (source "book/practical-sigil/01-useful-first-script.sgd" 436 11 5 20)) (code "tasks.txt" (source "book/practical-sigil/01-useful-first-script.sgd" 456 11 25 16)) (text ":" (source "book/practical-sigil/01-useful-first-script.sgd" 472 11 41 1))) (source "book/practical-sigil/01-useful-first-script.sgd" 432 11 1 42)) (code-block (language "text") (content "TODO Write the first Practical Sigil chapter\nDONE Sketch the report format\nTODO Share the result") (source "book/practical-sigil/01-useful-first-script.sgd" 476 13 1 121)) (paragraph (children (text "The program starts by turning the file into lines and asking whether each line begins with the state we care about." (source "book/practical-sigil/01-useful-first-script.sgd" 597 18 1 116))) (source "book/practical-sigil/01-useful-first-script.sgd" 597 18 1 116)) (code-block (language "sigil") (content "(import (sigil core) (sigil fs) (sigil string))\n\n(define (task? state line)\n (string-starts-with? line (string-append state \" \")))\n\n(define (count-tasks state lines)\n (length (filter (lambda (line) (task? state line)) lines)))") (source "book/practical-sigil/01-useful-first-script.sgd" 715 22 1 254)) (paragraph (children (text "This is ordinary Scheme-shaped code, but it is directed at practical work. There is no framework to adopt and no object hierarchy to satisfy. Data enters as strings and lists, and the small functions say exactly how it changes." (source "book/practical-sigil/01-useful-first-script.sgd" 969 31 1 228))) (source "book/practical-sigil/01-useful-first-script.sgd" 969 31 1 228)) (section (id "craft-the-report") (title (text "Craft the Report" (source "book/practical-sigil/01-useful-first-script.sgd" 1199 36 1 1009))) (children (paragraph (children (text "Now give the script a boundary: read the file, split it into lines, and display the result." (source "book/practical-sigil/01-useful-first-script.sgd" 1252 38 1 91))) (source "book/practical-sigil/01-useful-first-script.sgd" 1252 38 1 91)) (code-block (language "sigil") (content "(define lines\n (string-split (read-file-string \"tasks.txt\") \"\\n\"))\n\n(display \"Open tasks: \")\n(display (count-tasks \"TODO\" lines))\n(newline)") (source "book/practical-sigil/01-useful-first-script.sgd" 1345 41 1 166)) (paragraph (children (text "Run it and the answer is immediate:" (source "book/practical-sigil/01-useful-first-script.sgd" 1511 49 1 36))) (source "book/practical-sigil/01-useful-first-script.sgd" 1511 49 1 36)) (code-block (language "text") (content "Open tasks: 2") (source "book/practical-sigil/01-useful-first-script.sgd" 1549 52 1 38)) (paragraph (children (text "The important result is not the number. It is the shape of the solution. Sigil lets a short script stay short while still giving it modules, Unicode strings, structured errors, a compiler, and a path toward a distributable program." (source "book/practical-sigil/01-useful-first-script.sgd" 1587 55 1 232))) (source "book/practical-sigil/01-useful-first-script.sgd" 1587 55 1 232)) (admonition (kind aside) (title) (children (paragraph (children (text "Keep the first version direct. Extract an abstraction when it makes the next change clearer, not merely because a function could exist." (source "book/practical-sigil/01-useful-first-script.sgd" 1828 61 1 135))) (source "book/practical-sigil/01-useful-first-script.sgd" 1828 61 1 135))) (source "book/practical-sigil/01-useful-first-script.sgd" 1821 60 1 154)) (exercise (id "change-state") (title (text "Change the state" (source "book/practical-sigil/01-useful-first-script.sgd" 1976 65 1 217))) (children (paragraph (children (text "Change the report to count " (source "book/practical-sigil/01-useful-first-script.sgd" 2028 67 1 27)) (code "DONE" (source "book/practical-sigil/01-useful-first-script.sgd" 2055 67 28 11)) (text " lines. Then make the desired state a single named value so the question can change without touching the counting function." (source "book/practical-sigil/01-useful-first-script.sgd" 2066 67 39 123))) (source "book/practical-sigil/01-useful-first-script.sgd" 2023 66 1 168))) (source "book/practical-sigil/01-useful-first-script.sgd" 1976 65 1 217))) (source "book/practical-sigil/01-useful-first-script.sgd" 1199 36 1 1009))) (source "book/practical-sigil/01-useful-first-script.sgd" 78 4 1 2143))) (source "book/practical-sigil/01-useful-first-script.sgd" 16 2 1 2218))9
#<undefined>10
=== book/practical-sigil/02-change-the-question.sgd11
(document (kind chapter) (title "Change the Question") (authors "David Wilson") (children (section (id "script-into-tool") (title (text "Turn a Script into a Tool" (source "book/practical-sigil/02-change-the-question.sgd" 76 4 1 608))) (children (paragraph (children (text "The first version in " (source "book/practical-sigil/02-change-the-question.sgd" 143 7 1 21)) (reference "first-script" (label (text "A Useful First Script" (source "book/practical-sigil/02-change-the-question.sgd" 187 7 45 21))) (source "book/practical-sigil/02-change-the-question.sgd" 164 7 22 45)) (text " answers one fixed question. A practical tool becomes more valuable when its user can choose the question without editing source code." (source "book/practical-sigil/02-change-the-question.sgd" 209 7 67 134))) (source "book/practical-sigil/02-change-the-question.sgd" 138 6 1 207)) (code-block (language "sigil") (content "(define state\n (if (null? (command-line))\n \"TODO\"\n (car (command-line))))") (source "book/practical-sigil/02-change-the-question.sgd" 347 12 1 110)) (paragraph (children (text "Keeping this decision near the program boundary leaves parsing, counting, and reporting as ordinary reusable functions. The command line selects policy; the rest of the script remains simple data transformation." (source "book/practical-sigil/02-change-the-question.sgd" 457 18 1 212))) (source "book/practical-sigil/02-change-the-question.sgd" 457 18 1 212))) (source "book/practical-sigil/02-change-the-question.sgd" 76 4 1 608)) (section (id "craft-the-interface") (title (text "Craft the Interface" (source "book/practical-sigil/02-change-the-question.sgd" 685 25 1 751))) (children (paragraph (children (text "An interface is more than argument parsing. It includes useful defaults, clear failure messages, and output that composes well with other tools. Sigil lets us add those pieces without changing languages or abandoning the compact Scheme core that made the first script pleasant to write." (source "book/practical-sigil/02-change-the-question.sgd" 744 27 1 286))) (source "book/practical-sigil/02-change-the-question.sgd" 744 27 1 286)) (paragraph (children (text "Prefer one obvious default before adding flags. A tool that does something useful with no ceremony is easier to learn and easier to automate." (source "book/practical-sigil/02-change-the-question.sgd" 1032 32 1 141))) (source "book/practical-sigil/02-change-the-question.sgd" 1032 32 1 141)) (exercise (id "helpful-failure") (title (text "Craft a helpful failure" (source "book/practical-sigil/02-change-the-question.sgd" 1175 35 1 246))) (children (paragraph (children (text "Reject unknown states with a message that shows the accepted values and exits with a nonzero status. Keep that policy at the boundary rather than mixing it into " (source "book/practical-sigil/02-change-the-question.sgd" 1237 37 1 161)) (code "count-tasks" (source "book/practical-sigil/02-change-the-question.sgd" 1398 39 6 18)) (text "." (source "book/practical-sigil/02-change-the-question.sgd" 1416 39 24 1))) (source "book/practical-sigil/02-change-the-question.sgd" 1232 36 1 187))) (source "book/practical-sigil/02-change-the-question.sgd" 1175 35 1 246))) (source "book/practical-sigil/02-change-the-question.sgd" 685 25 1 751))) (source "book/practical-sigil/02-change-the-question.sgd" 16 2 1 1433))12
#<undefined>13
=== test/fixtures/d3-adversarial.sgd14
(document (kind chapter) (title "D3 Adversarial Controls") (authors "David Wilson") (children (example (id "fake-exit") (source-kind inline) (source "(begin\n (import (sigil process))\n (display \"error: expected boom\\n\")\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 80 3 1 172)) (example (id "forge-file") (source-kind inline) (source "(begin\n (import (sigil fs) (sigil process))\n (write-file-string \"exception.txt\" \"error: expected boom\")\n (write-file-string \"result\" \"(\\\"guessed\\\" error \\\"expected boom\\\")\")\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 253 9 1 279)) (example (id "forge-inherited-fds") (source-kind inline) (source "(begin\n (import (sigil core) (sigil fs) (sigil process) (sigil string))\n ;; Exact reviewer witness: the former protocol inherited readable nonce fd 4\n ;; and writable result fd 3 into the subject process.\n (define nonce (string-trim (read-file-string \"/dev/fd/4\")))\n (write-file-string \"/dev/fd/3\"\n (format \"~s\" (list nonce 'error \"expected boom\")))\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 533 16 1 469)) (example (id "enumerate-descriptors") (source-kind inline) (source "(begin\n (import (sigil process))\n ;; Ordinary descriptor enumeration must reveal no directly usable fd 3/4\n ;; authentication/result capability. Either way, this is only an exit.\n (process-run \"sh\" \"-c\"\n \"for f in /proc/$PPID/fd/*; do readlink \\\"$f\\\"; done\")\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 1003 26 1 379)) (example (id "forge-lexical-state") (source-kind inline) (source "(begin\n (import (sigil core) (sigil fs) (sigil process))\n (write-file-string exception-path\n (format \"~s\" (list exception-nonce 'error \"expected boom\")))\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 1383 35 1 270)) (example (id "forge-streams") (source-kind inline) (source "(begin\n (import (sigil process))\n (display \"error: expected boom\\n\")\n (display \"SIGIL_EXCEPTION error: expected boom\\n\" (current-error-port))\n (exit 1))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 1654 42 1 250)) (example (id "dedicated-exit") (source-kind inline) (source "(begin\n (import (sigil process))\n (exit 73))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 1905 49 1 141)) (example (id "signal") (source-kind inline) (source "(begin\n (import (sigil process))\n (process-run \"sh\" \"-c\" \"kill -TERM $PPID\"))") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 2047 54 1 166)) (example (id "stdout-cap") (source-kind inline) (source "(begin\n (display (make-string 2000000 #\\x))\n (let loop () (loop)))") (language "sigil") (session #f) (target bytecode) (expectation stdout "") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 2214 59 1 140)) (example (id "stderr-cap") (source-kind inline) (source "(begin\n (display (make-string 2000000 #\\x) (current-error-port))\n (let loop () (loop)))") (language "sigil") (session #f) (target bytecode) (expectation stdout "") (expected-stderr "") (timeout 15) (display source+expected) (source "test/fixtures/d3-adversarial.sgd" 2355 64 1 161))) (source "test/fixtures/d3-adversarial.sgd" 16 2 1 2502))15
#<undefined>16
=== test/fixtures/d3-backend-mismatch.sgd17
(document (kind chapter) (title "Backend Mismatch") (authors "David Wilson") (children (project-check (id "d3-project") (root "d3-project-native") (files "package.sgl" "src/d3-project/main.sgl") (config dev) (target bytecode) (expected-stdout "project-ok\n") (timeout 30) (source "test/fixtures/d3-backend-mismatch.sgd" 73 3 1 152))) (source "test/fixtures/d3-backend-mismatch.sgd" 16 2 1 211))18
#<undefined>19
=== test/fixtures/d3-duplicate.sgd20
(document (kind chapter) (title "Duplicate Examples") (authors "David Wilson") (children (example (id "same") (source-kind inline) (source "1") (language "sigil") (session #f) (target bytecode) (expectation value "1") (expected-stderr "") (timeout 5) (display source+expected) (source "test/fixtures/d3-duplicate.sgd" 75 3 1 53)) (example (id "same") (source-kind inline) (source "2") (language "sigil") (session #f) (target bytecode) (expectation value "2") (expected-stderr "") (timeout 5) (display source+expected) (source "test/fixtures/d3-duplicate.sgd" 129 4 1 53))) (source "test/fixtures/d3-duplicate.sgd" 16 2 1 168))21
#<undefined>22
=== test/fixtures/d3-empty.sgd23
(document (kind chapter) (title "No Examples") (authors "David Wilson") (children (paragraph (children (text "Passive only." (source "test/fixtures/d3-empty.sgd" 70 2 55 13))) (source "test/fixtures/d3-empty.sgd" 67 2 52 17))) (source "test/fixtures/d3-empty.sgd" 16 2 1 69))24
#<undefined>25
=== test/fixtures/d3-examples.sgd26
(document (kind chapter) (title "Executable Examples") (authors "David Wilson") (children (example (id "stdout") (source-kind inline) (source "(display \"hello\\n\")") (language "sigil") (session #f) (target bytecode) (expectation stdout "hello\n") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 76 3 1 94)) (example (id "value") (source-kind inline) (source "(+ 20 22)") (language "sigil") (session #f) (target bytecode) (expectation value "42") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 171 6 1 77)) (example (id "expected-error") (source-kind inline) (source "(error \"expected boom\")") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 249 9 1 118)) (example (id "session-one") (source-kind inline) (source "(define answer 40)") (language "sigil") (session "progress") (target bytecode) (expectation value "#<undefined>") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 368 12 1 122)) (example (id "session-two") (source-kind inline) (source "(+ answer 2)") (language "sigil") (session "progress") (target bytecode) (expectation value "42") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 491 15 1 106)) (example (id "file-source") (source-kind file) (source "d3-project/file-example.sgl") (language #f) (session #f) (target bytecode) (expectation stdout "file-ok\n") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/d3-examples.sgd" 598 18 1 107)) (example (id "timeout") (source-kind inline) (source "(let loop () (loop))") (language "sigil") (session #f) (target bytecode) (expectation timeout "") (expected-stderr "") (timeout 1) (display hidden) (source "test/fixtures/d3-examples.sgd" 706 19 1 106)) (project-check (id "d3-project") (root "d3-project") (files "package.sgl" "src/d3-project/main.sgl") (config dev) (target bytecode) (expected-stdout "project-ok\n") (timeout 30) (source "test/fixtures/d3-examples.sgd" 813 22 1 145))) (source "test/fixtures/d3-examples.sgd" 16 2 1 944))27
#<undefined>28
=== test/fixtures/glossary-lesson.sgd29
(document (kind chapter) (title "Bindings and Environments") (authors) (children (paragraph (children (text "A " (source "test/fixtures/glossary-lesson.sgd" 60 5 1 2)) (term-reference "binding" (label (text "binding" (source "test/fixtures/glossary-lesson.sgd" 83 5 24 7))) (source "test/fixtures/glossary-lesson.sgd" 62 5 3 29)) (text " gives a name to a stored value inside an " (source "test/fixtures/glossary-lesson.sgd" 91 5 32 42)) (term-reference "environment" (label (text "environment" (source "test/fixtures/glossary-lesson.sgd" 158 5 99 11))) (source "test/fixtures/glossary-lesson.sgd" 133 5 74 37)) (text "." (source "test/fixtures/glossary-lesson.sgd" 170 5 111 1))) (source "test/fixtures/glossary-lesson.sgd" 55 4 1 118)) (term (id "environment") (name "environment") (aliases) (definition (paragraph (children (text "A collection of bindings associated with a region of program code." (source "test/fixtures/glossary-lesson.sgd" 214 9 1 66))) (source "test/fixtures/glossary-lesson.sgd" 214 9 1 66))) (source "test/fixtures/glossary-lesson.sgd" 175 8 1 116)) (term (id "binding") (name "binding") (aliases "bindings") (definition (paragraph (children (text "An entry in an environment that links a symbol to a location; used to give a name to a stored value." (source "test/fixtures/glossary-lesson.sgd" 346 13 1 100))) (source "test/fixtures/glossary-lesson.sgd" 346 13 1 100))) (source "test/fixtures/glossary-lesson.sgd" 292 12 1 165))) (source "test/fixtures/glossary-lesson.sgd" 16 2 1 455))30
#<undefined>31
=== test/fixtures/glossary-page.sgd32
(document (kind chapter) (title "Glossary of Terms") (authors) (children (glossary (source "test/fixtures/glossary-page.sgd" 16 2 1 57))) (source "test/fixtures/glossary-page.sgd" 16 2 1 57))33
#<undefined>34
=== test/fixtures/minimal.sgd35
RAISED: unbound variable 'tip'36
#<undefined>37
=== test/fixtures/practical-sigil-change-question.sgd38
(document (kind chapter) (title "Change the Question") (authors "David Wilson") (children (section (id "script-into-tool") (title (text "Turn a Script into a Tool" (source "test/fixtures/practical-sigil-change-question.sgd" 76 4 1 603))) (children (paragraph (children (text "The first version in " (source "test/fixtures/practical-sigil-change-question.sgd" 143 7 1 21)) (reference "first-script" (label (text "the first script" (source "test/fixtures/practical-sigil-change-question.sgd" 187 7 45 16))) (source "test/fixtures/practical-sigil-change-question.sgd" 164 7 22 40)) (text " answers one fixed question. A practical tool becomes more valuable when its user can choose the question without editing source code." (source "test/fixtures/practical-sigil-change-question.sgd" 204 7 62 134))) (source "test/fixtures/practical-sigil-change-question.sgd" 138 6 1 202)) (code-block (language "sigil") (content "(define state\n (if (null? (command-line))\n \"TODO\"\n (car (command-line))))") (source "test/fixtures/practical-sigil-change-question.sgd" 342 12 1 110)) (paragraph (children (text "Keeping this decision near the program boundary leaves parsing, counting, and reporting as ordinary reusable functions. The command line selects policy; the rest of the script remains simple data transformation." (source "test/fixtures/practical-sigil-change-question.sgd" 452 18 1 212))) (source "test/fixtures/practical-sigil-change-question.sgd" 452 18 1 212))) (source "test/fixtures/practical-sigil-change-question.sgd" 76 4 1 603)) (section (id "craft-the-interface") (title (text "Craft the Interface" (source "test/fixtures/practical-sigil-change-question.sgd" 680 25 1 503))) (children (paragraph (children (text "An interface is more than argument parsing. It includes useful defaults, clear failure messages, and output that composes well with other tools. Sigil lets us add those pieces without changing languages or abandoning the compact Scheme core that made the first script pleasant to write." (source "test/fixtures/practical-sigil-change-question.sgd" 739 27 1 286))) (source "test/fixtures/practical-sigil-change-question.sgd" 739 27 1 286)) (paragraph (children (text "Prefer one obvious default before adding flags. A tool that does something useful with no ceremony is easier to learn and easier to automate." (source "test/fixtures/practical-sigil-change-question.sgd" 1027 32 1 141))) (source "test/fixtures/practical-sigil-change-question.sgd" 1027 32 1 141))) (source "test/fixtures/practical-sigil-change-question.sgd" 680 25 1 503))) (source "test/fixtures/practical-sigil-change-question.sgd" 16 2 1 1180))39
#<undefined>40
=== test/fixtures/practical-sigil-chapter.sgd41
(document (kind chapter) (title "A Useful First Script") (authors "David Wilson") (children (section (id "first-script") (title (text "A Useful First Script" (source "test/fixtures/practical-sigil-chapter.sgd" 286 14 1 962))) (children (paragraph (children (text "This is practical Scheme\xe2\x80\x94small functions composed without ceremony." (source "test/fixtures/practical-sigil-chapter.sgd" 346 17 1 69))) (source "test/fixtures/practical-sigil-chapter.sgd" 341 16 1 76)) (paragraph (children (text "The important idea is to shape the problem as a pipeline: obtain text, split it into lines, select what matters, and render the answer." (source "test/fixtures/practical-sigil-chapter.sgd" 424 21 1 135))) (source "test/fixtures/practical-sigil-chapter.sgd" 419 20 1 142)) (code-block (language "sigil") (content "(import (sigil core) (sigil fs))\n(define lines (string-split (read-file-string \"tasks.txt\") \"\\n\"))\n(define todos (filter (lambda (line) (string-prefix? \"TODO \" line)) lines))\n(display (string-append \"Open tasks: \" (number->string (length todos))))\n(newline)\n(for-each (lambda (line) (display (string-append \"- \" line \"\\n\"))) todos)") (source "test/fixtures/practical-sigil-chapter.sgd" 563 25 1 351)) (section (id "messy-input") (title (text "run the script on a deliberately messy file" (source "test/fixtures/practical-sigil-chapter.sgd" 921 35 1 173))) (children (paragraph (children (text "Unicode such as \xce\xba\xce\xb1\xce\xbb\xce\xb7\xce\xbc\xce\xad\xcf\x81\xce\xb1, and a line that merely contains the word TODO." (source "test/fixtures/practical-sigil-chapter.sgd" 1000 36 5 80))) (source "test/fixtures/practical-sigil-chapter.sgd" 996 36 1 84))) (source "test/fixtures/practical-sigil-chapter.sgd" 921 35 1 173)) (paragraph (children (text "This " (source "test/fixtures/practical-sigil-chapter.sgd" 1108 40 5 5)) (emphasis (children (text "macro-expanded phrase" (source "test/fixtures/practical-sigil-chapter.sgd" 1121 40 18 21))) (source "test/fixtures/practical-sigil-chapter.sgd" 1113 40 10 30)) (text " is authored with an ordinary local macro." (source "test/fixtures/practical-sigil-chapter.sgd" 1143 40 40 42))) (source "test/fixtures/practical-sigil-chapter.sgd" 1104 40 1 81)) (paragraph (children (text "computed inline expression" (source "test/fixtures/practical-sigil-chapter.sgd" 286 14 1 962))) (source "test/fixtures/practical-sigil-chapter.sgd" 286 14 1 962))) (source "test/fixtures/practical-sigil-chapter.sgd" 286 14 1 962)) (section (id "change-the-question") (title (text "Change the Question" (source "test/fixtures/practical-sigil-chapter.sgd" 1249 46 1 485))) (children (paragraph (children (text "Once a small program works, its value comes from how readily it can answer the next question." (source "test/fixtures/practical-sigil-chapter.sgd" 1314 49 1 93))) (source "test/fixtures/practical-sigil-chapter.sgd" 1309 48 1 100)) (exercise (id "change-the-question") (title (text "add a command-line word that selects TODO or DONE" (source "test/fixtures/practical-sigil-chapter.sgd" 1411 53 1 196))) (children (paragraph (children (text "Then add three small examples that cover an empty list, mixed tasks, and non-ASCII task text." (source "test/fixtures/practical-sigil-chapter.sgd" 1510 58 1 93))) (source "test/fixtures/practical-sigil-chapter.sgd" 1505 57 1 100))) (source "test/fixtures/practical-sigil-chapter.sgd" 1411 53 1 196)) (paragraph (children (text "Return to " (source "test/fixtures/practical-sigil-chapter.sgd" 1614 64 1 10)) (reference "first-script" (label (text "the first script" (source "test/fixtures/practical-sigil-chapter.sgd" 1647 64 34 16))) (source "test/fixtures/practical-sigil-chapter.sgd" 1624 64 11 40)) (text " when the revised version starts to feel complicated." (source "test/fixtures/practical-sigil-chapter.sgd" 1664 64 51 53))) (source "test/fixtures/practical-sigil-chapter.sgd" 1609 63 1 110))) (source "test/fixtures/practical-sigil-chapter.sgd" 1249 46 1 485)) (section (id "computed-section-1") (title (text "Computed Section 1" (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (children (paragraph (children (text "Computed by an imported ordinary Sigil function." (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61)) (section (id "computed-section-2") (title (text "Computed Section 2" (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (children (paragraph (children (text "Computed by an imported ordinary Sigil function." (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61))) (source "test/fixtures/practical-sigil-chapter.sgd" 1735 70 1 61)) (section (id "verified-examples") (title (text "Verified Examples" (source "test/fixtures/practical-sigil-chapter.sgd" 1798 75 1 939))) (children (example (id "stdout") (source-kind inline) (source "(display \"hello\\n\")") (language "sigil") (session #f) (target bytecode) (expectation stdout "hello\n") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 1853 76 1 94)) (example (id "value") (source-kind inline) (source "(+ 20 22)") (language "sigil") (session #f) (target bytecode) (expectation value "42") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 1948 79 1 77)) (example (id "expected-error") (source-kind inline) (source "(error \"expected boom\")") (language "sigil") (session #f) (target bytecode) (expectation error "error: expected boom") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 2026 82 1 118)) (example (id "session-one") (source-kind inline) (source "(define answer 40)") (language "sigil") (session "progress") (target bytecode) (expectation value "#<undefined>") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 2145 85 1 122)) (example (id "session-two") (source-kind inline) (source "(+ answer 2)") (language "sigil") (session "progress") (target bytecode) (expectation value "42") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 2268 88 1 106)) (example (id "file-source") (source-kind file) (source "d3-project/file-example.sgl") (language #f) (session #f) (target bytecode) (expectation stdout "file-ok\n") (expected-stderr "") (timeout 30) (display source+expected) (source "test/fixtures/practical-sigil-chapter.sgd" 2375 91 1 107)) (example (id "timeout") (source-kind inline) (source "(let loop () (loop))") (language "sigil") (session #f) (target bytecode) (expectation timeout "") (expected-stderr "") (timeout 1) (display hidden) (source "test/fixtures/practical-sigil-chapter.sgd" 2483 92 1 106)) (project-check (id "d3-project") (root "d3-project") (files "package.sgl" "src/d3-project/main.sgl") (config dev) (target bytecode) (expected-stdout "project-ok\n") (timeout 30) (source "test/fixtures/practical-sigil-chapter.sgd" 2590 95 1 145))) (source "test/fixtures/practical-sigil-chapter.sgd" 1798 75 1 939))) (source "test/fixtures/practical-sigil-chapter.sgd" 217 9 1 2535))42
#<undefined>43
=== test/fixtures/sd-manuscript-keyword-define.sgd44
(document (kind chapter) (title "Keyword Define") (authors "SD") (children (section (id "uses") (title (text "Uses" (source "test/fixtures/sd-manuscript-keyword-define.sgd" 287 8 1 105))) (children (admonition (kind tip) (title (text "WARN: Explicit" (source "test/fixtures/sd-manuscript-keyword-define.sgd" 316 9 1 43))) (children (paragraph (children (text "tail" (source "test/fixtures/sd-manuscript-keyword-define.sgd" 353 9 38 4))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 350 9 35 8))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 316 9 1 43)) (admonition (kind tip) (title (text "note: Default" (source "test/fixtures/sd-manuscript-keyword-define.sgd" 360 10 1 30))) (children (paragraph (children (text "plain" (source "test/fixtures/sd-manuscript-keyword-define.sgd" 383 10 24 5))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 380 10 21 9))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 360 10 1 30))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 287 8 1 105))) (source "test/fixtures/sd-manuscript-keyword-define.sgd" 254 7 1 140))45
#<undefined>46
=== test/fixtures/sd-p1-article-root.sgd47
RAISED: read-language-source failed for #lang sigil/doc: 48
#<undefined>49
=== test/fixtures/sd-p1-folio-roots.sgd50
RAISED: read-language-source failed for #lang sigil/doc: 51
#<undefined>52
=== test/fixtures/sd-p3-bare-prose.sgd53
(document (kind chapter) (title "Runs") (authors "David Wilson") (children (section (id "inline") (title (text "Inline" (source "test/fixtures/sd-p3-bare-prose.sgd" 61 3 1 289))) (children (paragraph (children (text "A na\xc3\xafve paragraph mentioning " (source "test/fixtures/sd-p3-bare-prose.sgd" 94 4 1 30)) (code "define" (source "test/fixtures/sd-p3-bare-prose.sgd" 124 4 30 13)) (text " and " (source "test/fixtures/sd-p3-bare-prose.sgd" 137 4 43 5)) (reference "inline" (label (text "this section" (source "test/fixtures/sd-p3-bare-prose.sgd" 157 4 63 12))) (source "test/fixtures/sd-p3-bare-prose.sgd" 142 4 48 28)) (text " with " (source "test/fixtures/sd-p3-bare-prose.sgd" 170 4 76 6)) (emphasis (children (text "emphasis" (source "test/fixtures/sd-p3-bare-prose.sgd" 180 4 86 8))) (source "test/fixtures/sd-p3-bare-prose.sgd" 176 4 82 13)) (text " in a caf\xc3\xa9." (source "test/fixtures/sd-p3-bare-prose.sgd" 189 4 95 12))) (source "test/fixtures/sd-p3-bare-prose.sgd" 94 4 1 107)) (paragraph (children (text "A second paragraph, after a blank line, mentioning " (source "test/fixtures/sd-p3-bare-prose.sgd" 203 6 1 51)) (code "lambda" (source "test/fixtures/sd-p3-bare-prose.sgd" 254 6 52 13)) (text " and bob" (source "test/fixtures/sd-p3-bare-prose.sgd" 267 6 65 8)) (text "@" (source "test/fixtures/sd-p3-bare-prose.sgd" 275 6 73 2)) (text "example.com, linking out to " (source "test/fixtures/sd-p3-bare-prose.sgd" 277 6 75 28)) (url-link "https://example.org/spec" (label (text "the spec" (source "test/fixtures/sd-p3-bare-prose.sgd" 338 6 136 8))) (source "test/fixtures/sd-p3-bare-prose.sgd" 305 6 103 42)) (text "." (source "test/fixtures/sd-p3-bare-prose.sgd" 347 6 145 1))) (source "test/fixtures/sd-p3-bare-prose.sgd" 203 6 1 145))) (source "test/fixtures/sd-p3-bare-prose.sgd" 61 3 1 289))) (source "test/fixtures/sd-p3-bare-prose.sgd" 16 2 1 336))54
#<undefined>55
=== test/fixtures/sd-p3-wrapped.sgd56
(document (kind chapter) (title "Runs") (authors "David Wilson") (children (section (id "inline") (title (text "Inline" (source "test/fixtures/sd-p3-wrapped.sgd" 61 3 1 297))) (children (paragraph (children (text "A na\xc3\xafve paragraph mentioning " (source "test/fixtures/sd-p3-wrapped.sgd" 97 4 4 30)) (code "define" (source "test/fixtures/sd-p3-wrapped.sgd" 127 4 33 13)) (text " and " (source "test/fixtures/sd-p3-wrapped.sgd" 140 4 46 5)) (reference "inline" (label (text "this section" (source "test/fixtures/sd-p3-wrapped.sgd" 160 4 66 12))) (source "test/fixtures/sd-p3-wrapped.sgd" 145 4 51 28)) (text " with " (source "test/fixtures/sd-p3-wrapped.sgd" 173 4 79 6)) (emphasis (children (text "emphasis" (source "test/fixtures/sd-p3-wrapped.sgd" 183 4 89 8))) (source "test/fixtures/sd-p3-wrapped.sgd" 179 4 85 13)) (text " in a caf\xc3\xa9." (source "test/fixtures/sd-p3-wrapped.sgd" 192 4 98 12))) (source "test/fixtures/sd-p3-wrapped.sgd" 94 4 1 111)) (paragraph (children (text "A second paragraph, after a blank line, mentioning " (source "test/fixtures/sd-p3-wrapped.sgd" 210 6 4 51)) (code "lambda" (source "test/fixtures/sd-p3-wrapped.sgd" 261 6 55 13)) (text " and bob" (source "test/fixtures/sd-p3-wrapped.sgd" 274 6 68 8)) (text "@" (source "test/fixtures/sd-p3-wrapped.sgd" 282 6 76 2)) (text "example.com, linking out to " (source "test/fixtures/sd-p3-wrapped.sgd" 284 6 78 28)) (url-link "https://example.org/spec" (label (text "the spec" (source "test/fixtures/sd-p3-wrapped.sgd" 345 6 139 8))) (source "test/fixtures/sd-p3-wrapped.sgd" 312 6 106 42)) (text "." (source "test/fixtures/sd-p3-wrapped.sgd" 354 6 148 1))) (source "test/fixtures/sd-p3-wrapped.sgd" 207 6 1 149))) (source "test/fixtures/sd-p3-wrapped.sgd" 61 3 1 297))) (source "test/fixtures/sd-p3-wrapped.sgd" 16 2 1 344))57
#<undefined>58
=== test/fixtures/sd-p4-collision.sgd59
RAISED: make-reference: invalid target60
#<undefined>61
=== test/fixtures/sd-p4-note-root.sgd62
RAISED: read-language-source failed for #lang sigil/doc: 63
#<undefined>64
=== test/fixtures/sd-p4-witness.sgd65
SDP4-WITNESS-AUTHOR-EXPRESSION-RAN66
SDP4-WITNESS-AUTHOR-COMMAND-RAN67
(document (kind chapter) (title "Witness") (authors "SD-P4") (children (paragraph (children (text "This manuscript exists to prove the no-execution witness can SEE execution. Passive inspection must print none of its markers; evaluating it through the real #lang path must print all three." (source "test/fixtures/sd-p4-witness.sgd" 350 10 4 190))) (source "test/fixtures/sd-p4-witness.sgd" 347 10 1 194)) (paragraph (children (text "An author-defined command whose body runs only under evaluation." (source "test/fixtures/sd-p4-witness.sgd" 561 14 19 64))) (source "test/fixtures/sd-p4-witness.sgd" 561 14 19 64)) (code-block (language "sigil") (content "@(display \"SDP4-WITNESS-CODE-BODY-RAN\\n\")") (source "test/fixtures/sd-p4-witness.sgd" 628 17 1 57))) (source "test/fixtures/sd-p4-witness.sgd" 306 8 1 394))68
#<undefined>69
=== test/fixtures/semantic-structures.sgd70
(document (kind chapter) (title "Semantic Structures") (authors "Course Author") (children (item-list (ordered #f) (start 1) (items (list-item (children (paragraph (children (text "First item" (source "test/fixtures/semantic-structures.sgd" 93 5 10 10))) (source "test/fixtures/semantic-structures.sgd" 93 5 10 10))) (source "test/fixtures/semantic-structures.sgd" 86 5 3 18)) (list-item (children (paragraph (children (text "Second item with nesting:" (source "test/fixtures/semantic-structures.sgd" 121 7 9 25))) (source "test/fixtures/semantic-structures.sgd" 117 7 5 30)) (item-list (ordered #t) (start 3) (items (list-item (children (paragraph (children (text "Nested three" (source "test/fixtures/semantic-structures.sgd" 194 9 14 12))) (source "test/fixtures/semantic-structures.sgd" 194 9 14 12))) (source "test/fixtures/semantic-structures.sgd" 187 9 7 20)) (list-item (children (paragraph (children (text "Nested four" (source "test/fixtures/semantic-structures.sgd" 221 10 14 11))) (source "test/fixtures/semantic-structures.sgd" 221 10 14 11))) (source "test/fixtures/semantic-structures.sgd" 214 10 7 19))) (source "test/fixtures/semantic-structures.sgd" 152 8 5 97))) (source "test/fixtures/semantic-structures.sgd" 107 6 3 154))) (source "test/fixtures/semantic-structures.sgd" 77 4 1 195)) (table (caption (text "Key bindings" (source "test/fixtures/semantic-structures.sgd" 273 15 1 205))) (columns left center) (rows (table-row (header #t) (cells (table-cell (children (paragraph (children (text "Action" (source "test/fixtures/semantic-structures.sgd" 359 17 12 6))) (source "test/fixtures/semantic-structures.sgd" 359 17 12 6))) (source "test/fixtures/semantic-structures.sgd" 352 17 5 14)) (table-cell (children (paragraph (children (text "Binding" (source "test/fixtures/semantic-structures.sgd" 378 18 12 7))) (source "test/fixtures/semantic-structures.sgd" 378 18 12 7))) (source "test/fixtures/semantic-structures.sgd" 371 18 5 15))) (source "test/fixtures/semantic-structures.sgd" 331 16 3 67)) (table-row (header #f) (cells (table-cell (children (paragraph (children (text "Open a file" (source "test/fixtures/semantic-structures.sgd" 416 21 12 11))) (source "test/fixtures/semantic-structures.sgd" 416 21 12 11))) (source "test/fixtures/semantic-structures.sgd" 409 21 5 19)) (table-cell (children (paragraph (children (code "C-x C-f" (source "test/fixtures/semantic-structures.sgd" 440 22 12 14))) (source "test/fixtures/semantic-structures.sgd" 440 22 12 14))) (source "test/fixtures/semantic-structures.sgd" 433 22 5 22))) (source "test/fixtures/semantic-structures.sgd" 400 20 3 67))) (source "test/fixtures/semantic-structures.sgd" 273 15 1 205)) (video (source "demo-video-id") (provider cloudflare) (title (text "Demonstration" (source "test/fixtures/semantic-structures.sgd" 479 26 1 83))) (print omit) (source "test/fixtures/semantic-structures.sgd" 479 26 1 83))) (source "test/fixtures/semantic-structures.sgd" 16 2 1 561))71
#<undefined>72
=== test/fixtures/url-links.sgd73
(document (kind chapter) (title "Links That Leave the Publication") (authors "David Wilson") (children (section (id "course-links") (title (text "Course Links" (source "test/fixtures/url-links.sgd" 89 3 1 465))) (children (paragraph (children (text "The Guile manual documents " (source "test/fixtures/url-links.sgd" 138 5 1 27)) (url-link "https://www.gnu.org/software/guile/manual/html_node/String-Selection.html#index-substring" (label (text "substring" (source "test/fixtures/url-links.sgd" 263 5 126 9))) (source "test/fixtures/url-links.sgd" 165 5 28 108)) (text "and " (source "test/fixtures/url-links.sgd" 273 5 136 5)) (url-link "https://www.gnu.org/software/guile/manual/html_node/Ports.html" (label (text "ports" (source "test/fixtures/url-links.sgd" 349 6 76 5))) (source "test/fixtures/url-links.sgd" 278 6 5 77)) (text "." (source "test/fixtures/url-links.sgd" 355 6 82 1))) (source "test/fixtures/url-links.sgd" 134 4 1 224)) (paragraph (children (text "Geiser is documented on " (source "test/fixtures/url-links.sgd" 363 9 1 24)) (url-link "https://elpa.nongnu.org/nongnu/doc/geiser.html" (label (text "NonGNU ELPA" (source "test/fixtures/url-links.sgd" 442 9 80 11))) (source "test/fixtures/url-links.sgd" 387 9 25 67)) (text ", and Windows readers start at " (source "test/fixtures/url-links.sgd" 454 9 92 31)) (url-link "https://www.msys2.org/#installation" (label (text "the MSYS2 installer" (source "test/fixtures/url-links.sgd" 529 10 62 19))) (source "test/fixtures/url-links.sgd" 485 10 18 64)) (text "." (source "test/fixtures/url-links.sgd" 549 10 82 1))) (source "test/fixtures/url-links.sgd" 359 8 1 193))) (source "test/fixtures/url-links.sgd" 89 3 1 465)) (section (id "shapes") (title (text "Target Shapes" (source "test/fixtures/url-links.sgd" 555 13 1 439))) (children (paragraph (children (text "An empty body makes the target its own label: " (source "test/fixtures/url-links.sgd" 598 14 4 46)) (url-link "http://example.org/plain" (label (text "http://example.org/plain" (source "test/fixtures/url-links.sgd" 644 14 50 34))) (source "test/fixtures/url-links.sgd" 644 14 50 34)) (text "." (source "test/fixtures/url-links.sgd" 678 14 84 1))) (source "test/fixtures/url-links.sgd" 595 14 1 85)) (paragraph (children (text "Correspondence works too: " (source "test/fixtures/url-links.sgd" 684 15 4 26)) (url-link "mailto:david@example.com" (label (text "David" (source "test/fixtures/url-links.sgd" 743 15 63 5))) (source "test/fixtures/url-links.sgd" 710 15 30 39)) (text "." (source "test/fixtures/url-links.sgd" 749 15 69 1))) (source "test/fixtures/url-links.sgd" 681 15 1 70)) (paragraph (children (text "A target carrying characters that must be escaped rather than dropped: " (source "test/fixtures/url-links.sgd" 756 17 1 71)) (url-link "https://example.com/search?a=1&b=<2>&c=\"3\"" (label (text "a hostile-looking query" (source "test/fixtures/url-links.sgd" 880 18 54 23))) (source "test/fixtures/url-links.sgd" 827 18 1 77)) (text "." (source "test/fixtures/url-links.sgd" 904 18 78 1))) (source "test/fixtures/url-links.sgd" 752 16 1 155)) (paragraph (children (text "An emphasized label stays inline: " (source "test/fixtures/url-links.sgd" 911 20 4 34)) (url-link "https://example.com/em" (label (emphasis (children (text "emphasis" (source "test/fixtures/url-links.sgd" 980 20 73 8))) (source "test/fixtures/url-links.sgd" 976 20 69 13))) (source "test/fixtures/url-links.sgd" 945 20 38 45)) (text "." (source "test/fixtures/url-links.sgd" 990 20 83 1))) (source "test/fixtures/url-links.sgd" 908 20 1 84))) (source "test/fixtures/url-links.sgd" 555 13 1 439))) (source "test/fixtures/url-links.sgd" 16 2 1 980))74
#<undefined>75
SD_P7_CONSTRUCTION_DUMP_COMPLETE 22 manuscripts