Skip to content

Commit bc82a6b

Browse files
committed
corrected spelling across the entire project
1 parent 3ac32cf commit bc82a6b

File tree

25 files changed

+61
-51
lines changed

25 files changed

+61
-51
lines changed

.config/cspell.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
// you can check which dictionary has a word with `npx cspell trace yourWord`
66
{
77
"version": "0.2",
8-
"ignorePaths": ["target", "legacy", "*.lock"],
8+
"ignorePaths": ["target", "legacy", "**/*.lock"],
9+
"useGitignore": false,
10+
"enableFiletypes": ["*", "Vimscript"],
911
"dictionaryDefinitions": [
1012
{
1113
"name": "custom-dictionary",
@@ -16,6 +18,6 @@
1618
"dictionaries": ["custom-dictionary", "rust", "makefile", "softwareTerms"],
1719
"words": [],
1820
"flagWords": [],
19-
"ignoreWords": ["atwo", "btwo", "ctwo", "dtwo"],
21+
"ignoreWords": ["Emmmmm", "atwo", "btwo", "ctwo", "dtwo", "hexy"],
2022
"import": []
2123
}

.config/custom-dictionary.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ evaled
126126
evals
127127
execvp
128128
Expandvec
129+
Falh
129130
falsey
130131
fclose
131132
fcntl
@@ -136,6 +137,7 @@ footgun
136137
fopen
137138
fprn
138139
fract
140+
frood
139141
FSIZE
140142
ftype
141143
fxhasher
@@ -151,8 +153,11 @@ GOTPCREL
151153
gpwclark
152154
greenyellow
153155
guifg
156+
Habcdefiklmnpqrstuvx
157+
hasher
154158
hashkey
155159
haskey
160+
hoopy
156161
iargs
157162
idents
158163
instring
@@ -222,6 +227,7 @@ movsbl
222227
movzbl
223228
MSGQUEUE
224229
mult
230+
munge
225231
myfn
226232
myfun
227233
namespacemath
@@ -416,6 +422,7 @@ Syscall
416422
syscall
417423
sysconf
418424
tadd
425+
takek
419426
targ
420427
TCALL # opcode for a tail call
421428
tcall
@@ -475,6 +482,7 @@ VECPSH
475482
vecs
476483
vecvalues
477484
vhandle
485+
vimscript
478486
vlen
479487
VMEM
480488
waitpid

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Rust](https://github.com/sl-sh-dev/sl-sh/workflows/Rust/badge.svg?branch=master)
66

7-
## Note this is a new expermental version, see ./legacy/ for the original version (slush).
7+
## Note this is a new experimental version, see ./legacy/ for the original version (slush).
88

99
Simple Lisp SHell (slosh) is a lisp based shell written in Rust. It is not POSIX
1010
compliant and makes no effort to be. Sl-sh should run on any *nix platform as
@@ -160,7 +160,7 @@ Note: These are all compiled to bytecode and once compiled are not dynamic anymo
160160
### Features
161161
162162
- Lisp reader (no reader macros yet)
163-
- Lisp lists (pair/concell based)
163+
- Lisp lists (pair/conscell based)
164164
- Vectors
165165
- Tail call optimization
166166
- Continuations (call/cc)
@@ -213,5 +213,5 @@ generated from the source code.
213213
214214
All of this is covered in `doc/README.md`
215215
216-
Must be compiled in lisp-test mode for appropriate documenation functions to be present (`cargo build --features lisp-test`).
216+
Must be compiled in lisp-test mode for appropriate documentation functions to be present (`cargo build --features lisp-test`).
217217

bridge_adapters/src/lisp_adapters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! TODO PC ISSUE #7 - returning values via annotated or lifetime?
1010
//! To avoid allocations when converting a slosh &Value back to a rust type that was mutated
1111
//! don't return anything. If it is necessary for the API to return some value.
12-
//! ...either use an annotation on an input argument `fn myfun(#[likethis] returnme: &mut String, someotherval: String) -> VMResult<()>`
12+
//! ...either use an annotation on an input argument `fn myfun(#[likeThis] returnme: &mut String, someotherval: String) -> VMResult<()>`
1313
//! or a lifetime... might be easier to do the annotation.
1414
//!
1515
//!

bridge_adapters/src/lisp_adapters/text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ mod tests {
522522
for val in loose_strings_as_vals {
523523
let _loose_string: LooseString = val
524524
.sl_into_ref(vm)
525-
.expect("This value should be convertable to a LooseString");
525+
.expect("This value should be convertible to a LooseString");
526526
}
527527
}
528528

@@ -533,7 +533,7 @@ mod tests {
533533

534534
let sample = LooseString::Owned("hello world".to_string());
535535
let val: Value =
536-
Value::sl_from(sample, vm).expect("This LooseString should be convertable to a Value");
536+
Value::sl_from(sample, vm).expect("This LooseString should be convertible to a Value");
537537
assert!(matches!(val, Value::String(_)));
538538
}
539539
}

bridge_macros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ implemented and then coerce the rust types into sl-sh Expressions with the
223223
appropriate errors and call the original function, `int_to_float` with rust
224224
types.
225225
- once `builtin_int_to_float` exists, `intern_int_to_float` must be manually
226-
called in the add_buitlins function like:
226+
called in the add_builtins function like:
227227

228228
```rust
229229
pub fn add_type_builtins<S: BuildHasher>(

bridge_macros/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,16 +1044,16 @@ fn generate_parse_fn(
10441044
}
10451045

10461046
fn num_required_args(params: &[Param]) -> usize {
1047-
params.iter().fold(0, |accum, nxt| {
1047+
params.iter().fold(0, |accumulator, nxt| {
10481048
if nxt.handle == TypeHandle::Direct {
1049-
accum + 1
1049+
accumulator + 1
10501050
} else {
1051-
accum
1051+
accumulator
10521052
}
10531053
})
10541054
}
10551055

1056-
/// write the builtin_ version of the provided function. This function is the function taht makes
1056+
/// write the builtin_ version of the provided function. This function is the function that makes
10571057
/// a direct call to the original rust native function to which the macro was applied. To accomplish
10581058
/// this the builtin_ function generates takes some number of ArgType structs (the wrapper enum that
10591059
/// enables passing optional and varargs). the body of the function handles unwrapping the ArgType
@@ -1643,7 +1643,7 @@ pub fn sl_sh_fn(
16431643

16441644
//TODO
16451645
// - functions that return Values, tuple return types?
1646-
// - fcns that accept iters?
1646+
// - functions that accept iters?
16471647
// - then... compare against inline the function being called... randomize variable names...
16481648
// and fn names too? could pick some random string and prefix all generated idents.
16491649
// - ISSUE #119 trybuild!

builtins/src/conversions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Section: conversion
108108
env,
109109
"ref",
110110
global_ref,
111-
r#"Usage: (ref symol) -> Value
111+
r#"Usage: (ref symbol) -> Value
112112
113113
If symbol is defined then return the thing it references.
114114
@@ -119,7 +119,7 @@ Section: conversion
119119
env,
120120
"def?",
121121
is_def,
122-
r#"Usage: (def? symol) -> #t/#f
122+
r#"Usage: (def? symbol) -> #t/#f
123123
124124
If symbol is defined then return true else false.
125125

builtins/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn str_map_inner(vm: &mut SloshVm, func: Value, string: Value) -> VMResult<Strin
159159
let mut res = String::new();
160160
for ch in UnicodeSegmentation::graphemes(string, true) {
161161
let param = vm.alloc_char(ch);
162-
// Dont use '?' or return early until the heap_unsticky() call below.
162+
// Don't use '?' or return early until the heap_unsticky() call below.
163163
vm.heap_sticky(param);
164164
let val = match func {
165165
Value::Lambda(handle) => {
@@ -520,7 +520,7 @@ pub fn add_str_builtins(env: &mut SloshVm) {
520520
str_replace,
521521
r#"Usage: (str-replace string old-pattern new-pattern) -> string
522522
523-
Replace occurances of second string with third in the first string.
523+
Replace occurrences of second string with third in the first string.
524524
525525
Section: string
526526

builtins/tests/MACRO_HELP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To get macro expansion output for a given test
77

88
If macro expansion for the test/trybuild/ is needed it is a little more complicated.
99

10-
Why? well, if you put failling tests in `/tests/` then cargo tests fails so you
10+
Why? well, if you put failing tests in `/tests/` then cargo tests fails so you
1111
can't do that. But `cargo expand --test` relies on finding modules in a test directory
1212
so, you can move a test from trybuild up one directory but move it back b/c
1313
otherwise `cargo test` will fail and CI won't pass.

0 commit comments

Comments
 (0)