Skip to content

Commit 4ee0dbf

Browse files
authored
corrections on 404-455 corrected (#725)
* corrections * controller fix
1 parent 4f0be8e commit 4ee0dbf

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ test_node_env/expect.txt
1010
test_node_env/result.txt
1111
test_node_env/node_modules
1212
.DS_Store
13+
*.icloud

xml/chapter4/section4/subsection1.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -767,14 +767,7 @@ job(list("Tweakit", "Lem", "E"), list("computer", "technician"))
767767
could be any
768768
<INDEX>dotted-tail notation<SUBINDEX><ORDER>query</ORDER>in query pattern</SUBINDEX></INDEX>
769769
list beginning with
770-
<SPLITINLINE>
771-
<SCHEME>
772-
<SCHEMEINLINE>computer</SCHEMEINLINE>,
773-
</SCHEME>
774-
<JAVASCRIPT>
775-
<JAVASCRIPTINLINE>"computer"</JAVASCRIPTINLINE>,
776-
</JAVASCRIPT>
777-
</SPLITINLINE>
770+
<SCHEMEINLINE>computer</SCHEMEINLINE>,
778771
we could
779772
specify<SPLITINLINE><SCHEME><FOOTNOTE>This uses the dotted-tail
780773
notation introduced in
@@ -793,7 +786,9 @@ job(list("Reasoner", "Louis"),
793786
elements, and the pattern<APOS/>s second item specifies that there
794787
should be two elements. If we wanted to change the pattern so that the
795788
second item could be any
796-
list beginning with <SCHEMEINLINE>computer</SCHEMEINLINE>, we could
789+
list beginning with
790+
<JAVASCRIPTINLINE>"computer"</JAVASCRIPTINLINE>,
791+
we could
797792
specify
798793
<COMMENT>
799794
There is no need for <QUOTE>dotted-tail notation</QUOTE> in the

xml/chapter5/section1/subsection1.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,13 @@ data_paths(
448448
pair(name("b"),
449449
buttons(name("b&lt;-t"), source(register("t")))),
450450
pair(name("t"),
451-
buttons(name("t&lt;-r"), source(operation("rem"))))),
451+
buttons(name("t&lt;-r"), source(operation("rem")))))),
452452
operations(
453453
list(
454454
pair(name("rem"),
455455
inputs(register("a"), register("b"))),
456456
pair(name("="),
457-
inputs(register("b"), constant(0)))))));
457+
inputs(register("b"), constant(0))))));
458458

459459
controller(
460460
list(
@@ -464,8 +464,8 @@ controller(
464464
"t&lt;-r", // button push
465465
"a&lt;-b", // button push
466466
"b&lt;-t", // button push
467-
go_to(label("test_b"))), // unconditional branch
468-
"gcd_done"); // label
467+
go_to(label("test_b")), // unconditional branch
468+
"gcd_done")); // label
469469
</JAVASCRIPT>
470470
</SNIPPET>
471471
<CAPTION>A specification of the GCD machine.</CAPTION>

0 commit comments

Comments
 (0)