Skip to content

Commit 26d37d2

Browse files
authored
Merge pull request #2 from jbampton/fix-spelling
misc: fix spelling
2 parents a9c115a + 462d61d commit 26d37d2

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

_ref/app.tem

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
(mac defopl "name parm [body]" "Version of <code>defop</code> to create handler that will redirect to login page if the user is not logged in." (faketest "(defopl foo req (prn \"Welcome!\"))" ""))
2121

22-
(mac uform "user req after [body ...]" "Generates form that ensures it was submitted by <code>user</code> (by using <code>when-umatch</code>). <code>body</code> outputs the form body to stdout. After submission, the continuation code <code>after</code> is executed; <code>req</code> specifies the varible name in <code>after</code> to receive the request."
22+
(mac uform "user req after [body ...]" "Generates form that ensures it was submitted by <code>user</code> (by using <code>when-umatch</code>). <code>body</code> outputs the form body to stdout. After submission, the continuation code <code>after</code> is executed; <code>req</code> specifies the variable name in <code>after</code> to receive the request."
2323
(faketest "(uform user req (prn \"Result\") (prn \"The form\") (submit))" ""))
2424

25-
(mac urform "user req after [body ...]" "Generates form with redirection target with guard that <code>user</code> submitted it. After submission, the continuation expression <code>after</code> is executed and must return the redirect string; <code>req</code> specifies the varible name in <code>after</code> to receive the request." (faketest "(urform user req \"newpage\" (prn \"Form\") (submit))" ""))
25+
(mac urform "user req after [body ...]" "Generates form with redirection target with guard that <code>user</code> submitted it. After submission, the continuation expression <code>after</code> is executed and must return the redirect string; <code>req</code> specifies the variable name in <code>after</code> to receive the request." (faketest "(urform user req \"newpage\" (prn \"Form\") (submit))" ""))
2626

2727
(mac when-umatch "user req [body...]" "If <code>user</code> matches the user associated with <code>req</code>, executes <code>body</code>. Otherwise executes <code>mismatch-message</code>."
2828
(faketest "(defopl ul req (let user (get-user req)
@@ -121,7 +121,7 @@
121121
(def varfield "typ id val" "Prints HTML for an input field of type <code>typ</code>, name <code>id</code>, and value <code>val</code>. <code>typ</code> is one of
122122
<code>bigtoks</code>, <code>date</code>, <code>doc</code>, <code>int</code>, <code>lines</code>, <code>mdtext</code>, <code>mdtext2</code>, <code>num</code>, <code>posint</code>, <code>string</code>, <code>string1</code>, <code>sym</code>, <code>syms</code>, <code>text</code>, <code>time</code>, <code>toks</code>, <code>url</code>, <code>users</code>. The type of field and the processing of val depend on <code>typ</code>." (htmltests (show varfield 'syms 'foo '(a b c))))
123123

124-
(def text-rows "text width [pad]" "Detemines how many rows to hold <code>text</code> based on <code>width</code> and padding." (tests (text-rows "abcde" 2)))
124+
(def text-rows "text width [pad]" "Determines how many rows to hold <code>text</code> based on <code>width</code> and padding." (tests (text-rows "abcde" 2)))
125125

126126
(def needrows "text cols [pad]" "Determines how many rows are needed to hold <code>text</code>, based on the length of the text and the number of newlines." (tests (needrows "abcde" 2)))
127127

_ref/arc/ac.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580

581581
(define fn-signatures (make-hash-table 'equal))
582582

583-
; This is a replacement for xdef that stores opeator signatures.
583+
; This is a replacement for xdef that stores operator signatures.
584584
; Haven't started using it yet.
585585

586586
(define (odef a parms b)

_ref/arc/app.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387

388388
; (= fail* (uniq))
389389

390-
(def fail* ()) ; coudn't possibly come back from a form
390+
(def fail* ()) ; couldn't possibly come back from a form
391391

392392
; Takes a list of fields of the form (type label value view modify) and
393393
; a fn f and generates a form such that when submitted (f label newval)

_ref/arc/brackets.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
; main reader function for []s
1111
; recursive read starts with default readtable's [ parser,
12-
; but nested reads still use the curent readtable:
12+
; but nested reads still use the current readtable:
1313

1414
(define (read-square-brackets ch port src line col pos)
1515
`(fn (_)

_ref/arc/news.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ function vote(node) {
18231823
(def commentable (i) (in i!type 'story 'comment 'poll))
18241824

18251825
; By default the ability to comment on an item is turned off after
1826-
; 45 days, but this can be overriden with commentable key.
1826+
; 45 days, but this can be overridden with commentable key.
18271827

18281828
(= commentable-threshold* (* 60 24 45))
18291829

_ref/docs/assign.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Assignment primitives</h2>
2222
</pre>
2323
Unusual list structures, including cyclic lists, can be created by splicing lists together with <code>scar</code> or <code>scdr</code>. Arc currently hangs if a cyclic list is displayed, so be forewarned.
2424
<h2>Places and =</h2>
25-
Generallly, assignment in Arc is performed with the <code>=</code> macro.
25+
Generally, assignment in Arc is performed with the <code>=</code> macro.
2626
It is similar to <code>set</code>, except it allows assignment not only to a symbol, but also to a "place".
2727
Roughly speaking, a place is a location that can be updated.
2828
The place can be a symbol, an index into a table, a character in a string, an index into a list, or a complex location in a list. The following examples illustrate how these different places can be updated.

_ref/docs/macros.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2>How macros work</h2>
2626
</pre>
2727
The macro foo does two things: it prints "macro executed" when it is executed during macroexpansion, and it returns the list: <code>(prn "generated code executed")</code>. When that list is executed in evaluation, it will display "generated code executed". (Since <code>prn</code> returns that string, the string is also displayed a second time as the result of the command.)
2828
<p>
29-
Howerver, the two phases of macroexpansion and evaluation can be separated in time.
29+
However, the two phases of macroexpansion and evaluation can be separated in time.
3030
If we use the macro inside a function definition, things get interesting:
3131
<pre class="repl">
3232
arc> (def bar () (prn "bar executed") (foo))
@@ -117,7 +117,7 @@ <h2>Macroexpansion</h2>
117117
Comparing <code>ac-mac-call</code> to <code>ac-call</code> shows why macros receive their arguments unevaluated. <code>ac-mac-call</code> applies the macro function to the arguments, while <code>ac-call</code> maps <code>ac</code> on the arguments before applying the function, causing the arguments to be evaluated.
118118

119119
<h2>Evaluation</h2>
120-
Nothing partcularly special happens for macro code during evaluation. At this point it is Scheme code, and it gets executed the same as any other code. Specifically, <code>arc-eval</code> calls <code>eval</code> on the Scheme code generated by <code>ac</code>. It may use <code>ar-funcall<i>n</i></code> to execute functions, and execution will typically bottom-out with foundation operations implemented in native Scheme. (See <a href="http://arcfn.com/foundation-doc.html">Arc Foundation Documentation</a> for details.)
120+
Nothing particularly special happens for macro code during evaluation. At this point it is Scheme code, and it gets executed the same as any other code. Specifically, <code>arc-eval</code> calls <code>eval</code> on the Scheme code generated by <code>ac</code>. It may use <code>ar-funcall<i>n</i></code> to execute functions, and execution will typically bottom-out with foundation operations implemented in native Scheme. (See <a href="http://arcfn.com/foundation-doc.html">Arc Foundation Documentation</a> for details.)
121121

122122
<h2>macex and macex1</h2>
123123
The <code>macex</code> and <code>macex1</code> functions perform macro expansion. If the outermost form is a macro, <code>macex1</code> expands it once, while <code>macex</code> expands it repeatedly until it is no longer a macro. These functions are typically used for debugging, to see what a macros is doing. Note that neither <code>macex</code> nor <code>macex1</code> expand inner macros.

_ref/io.tem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
)
8282

8383
(newtable "Disk variables"
84-
(mac diskvar "var file" "Creates a variable that will be loaded from file and stored in file. If file exists, var is initialzed from file. New in arc3." (tests (diskvar foo "file.txt")))
84+
(mac diskvar "var file" "Creates a variable that will be loaded from file and stored in file. If file exists, var is initialized from file. New in arc3." (tests (diskvar foo "file.txt")))
8585
(mac disktable "var file" "Creates a table variable that will be loaded from file and stored in file. New in arc3." (tests (disktable bar "file.txt")))
8686
(mac todisk "var [expr]" "Writes var to disk, optionally setting it to expr first. New in arc3." (tests (todisk bar)))
8787
(mac fromdisk "var file init load save" "If var is not bound, var is initialized either by calling load function on file or using init. The save function is saved for later use. Internal function. New in arc3.")

_ref/setforms.tem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
(var setter "" (tests))
66
(mac destructive defset "name parms [body ...]" "Defines a new type of place. Creates a new <code>setforms</code> handler for the function of the specified name." (tests (defset foo (x) nil)))
77
(def predicate metafn "x" "Helper predicate for setforms. Tests if x is a meta function: that is, it has special syntax, or uses compose or complement." (tests '(metafn '(a:b))))
8-
(def expand-metafn-call "f args" "Helper for setforms. Take a function of the form (compose ...) and expands it into the approprate composed function calls.." (tests "(expand-metafn-call '(compose g h) '(a b))"
8+
(def expand-metafn-call "f args" "Helper for setforms. Take a function of the form (compose ...) and expands it into the appropriate composed function calls.." (tests "(expand-metafn-call '(compose g h) '(a b))"
99
))
1010
(def expand= "place val" "Helper for =. Generates code to assign val to place." (tests (expand= 'a 42)))
1111
(def expand=list "terms" "Helper for =. Pairs up the arguments to =, and calls expand= on each pair." (tests (expand=list '(a 42 b 43))))

_ref/string.tem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(def predicate nonwhite "c" "Predicate to test if a character is not whitespace (space, newline, tab, or return)." (tests (nonwhite #\tab) (nonwhite #\a)))
77
(def predicate letter "c" "Predicate to test if a character is alphabetic. New in arc3." (tests (letter #\A) (letter #\2)))
88
(def predicate alphadig "c" "Predicate to test if a character is alphabetic or a digit." (tests (alphadig #\A) (alphadig #\2)))
9-
(def predicate punc "c" "Predicate to detemine if c is a punctuation character in the set: .,;:!?" (tests (punc #\.) (punc #\a) (punc ".")))
9+
(def predicate punc "c" "Predicate to determine if c is a punctuation character in the set: .,;:!?" (tests (punc #\.) (punc #\a) (punc ".")))
1010
(def downcase "str" "Converts a string, character, or symbol to lower case. This only converts ASCII; Unicode is unchanged." (tests (downcase "abcDEF123") (downcase #\A) (downcase 'abcDEF123)))
1111
(def upcase "str" "Converts a string, character, or symbol to lower case. This only converts ASCII; Unicode is unchanged." (tests (upcase "abcDEF123") (upcase #\a) (upcase 'abcDEF123)))
1212

0 commit comments

Comments
 (0)