14 lines
435 B
Markdown
14 lines
435 B
Markdown
# js-maker
|
|
|
|
js-maker is a deliberately small syntax-driven Racket-to-JavaScript string
|
|
maker. The public API is intentionally one macro:
|
|
|
|
```racket
|
|
(require js-maker)
|
|
(js (define (square x) (return (* x x))))
|
|
```
|
|
|
|
js-maker 3 keeps the implementation compact and supports ordinary `let`,
|
|
`let*`, and tail-recursive named `let` loops while preserving Racket binding
|
|
semantics. Demos are in `demo/`; regression tests are in `testing/`.
|