fez-lisp 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -14
- package/index.js +2 -2
- package/lib/baked/std.js +1 -1
- package/package.json +1 -1
- package/src/utils.js +1 -178
package/README.md
CHANGED
@@ -77,19 +77,6 @@ Installation:
|
|
77
77
|
npm i fez-lisp
|
78
78
|
```
|
79
79
|
|
80
|
-
```js
|
81
|
-
import { parse, debug } from 'fez-lisp'
|
82
|
-
debug(parse(`(log "Hello World!" "str")`)) // Hello World!
|
83
|
-
```
|
84
|
-
|
85
|
-
```js
|
86
|
-
import { parse, debug } from 'fez-lisp'
|
87
|
-
debug(parse(`(+ 1 (array 2))`)).error.message // TypeError: Second arguments of (+) is not a (number) at: (+ 1 (array 2) scope: (apply)
|
88
|
-
```
|
89
|
-
|
90
|
-
````js
|
91
|
-
|
92
|
-
|
93
80
|
```lisp
|
94
81
|
(let fizz-buzz (lambda n
|
95
82
|
(cond
|
@@ -99,7 +86,7 @@ debug(parse(`(+ 1 (array 2))`)).error.message // TypeError: Second arguments of
|
|
99
86
|
(*) (from:number->string n))))
|
100
87
|
|
101
88
|
(|> (math:range 1 100) (array:map fizz-buzz) (array:commas) (log "str"))
|
102
|
-
|
89
|
+
```
|
103
90
|
|
104
91
|
```js
|
105
92
|
import { parse, compile } from 'fez-lisp'
|
package/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { evaluate } from './src/evaluator.js'
|
2
2
|
import { compile } from './src/compiler.js'
|
3
|
-
import {
|
3
|
+
import { parse } from './src/utils.js'
|
4
4
|
import { LISP, AST } from './src/parser.js'
|
5
|
-
export { parse, evaluate, compile,
|
5
|
+
export { parse, evaluate, compile, LISP, AST }
|