File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ This system can be installed from [UltraLisp](https://ultralisp.org/) like this:
15
15
## Usage
16
16
17
17
``` common-lisp
18
- (async- defun foo ()
18
+ (defun-async foo ()
19
19
...)
20
20
21
21
(let ((bar (await (foo))))
22
22
...)
23
23
24
- (async- lambda () (await (foo)))
24
+ (lambda-async () (await (foo)))
25
25
```
26
26
27
27
## Credits
Original file line number Diff line number Diff line change 1
1
(defpackage paren-async
2
2
(:use # :cl)
3
3
(:export # :await
4
- # :async- defun
5
- # :async- lambda))
4
+ # :defun-async
5
+ # :lambda-async ))
Original file line number Diff line number Diff line change 9
9
(ps ::define-trivial-special-ops
10
10
await ps-js ::await)
11
11
12
- (ps ::define-statement-operator async- defun (name lambda-list &rest body)
12
+ (ps ::define-statement-operator defun-async (name lambda-list &rest body)
13
13
(multiple-value-bind (effective-args body-block docstring)
14
14
(ps ::compile-named-function-body name lambda-list body)
15
- (list ' ps-js::async- defun name effective-args docstring body-block)))
15
+ (list ' ps-js::defun-async name effective-args docstring body-block)))
16
16
17
- (ps ::defprinter ps-js ::async- defun (name args docstring body-block)
17
+ (ps ::defprinter ps-js ::defun-async (name args docstring body-block)
18
18
(when docstring (ps ::print-comment docstring))
19
19
(ps ::psw " async " )
20
20
(ps ::print-fun-def name args body-block))
21
21
22
- (ps ::define-expression-operator async- lambda (lambda-list &rest body)
22
+ (ps ::define-expression-operator lambda-async (lambda-list &rest body)
23
23
(multiple-value-bind (effective-args effective-body)
24
24
(ps ::parse-extended-function lambda-list body)
25
- ` (ps-js ::async- lambda , effective-args
25
+ ` (ps-js ::lambda-async , effective-args
26
26
, (let ((ps ::*function-block-names* ()))
27
27
(ps ::compile-function-body effective-args effective-body)))))
28
28
29
- (ps ::defprinter ps-js ::async- lambda (args body-block)
29
+ (ps ::defprinter ps-js ::lambda-async (args body-block)
30
30
(ps ::psw " async " )
31
31
(ps ::print-fun-def nil args body-block))
You can’t perform that action at this time.
0 commit comments