This is an attempt to extract PureScript's CoreImp AST for dynamically typed imperative languages.
It is based on a past coreimp work
The design concept is to provide a simpler AST rather than performance considerations.
Transpile target languages:
A simple way to get the requirements in Nix is to use a one-liner nix-shell command. For instance, if you are just in lua but not dart, you could do:
nix-shell -p lua yarn nodejs
First, generate example modules' corefn.json
files to ./example/output
Generate JavaScript files to ./js/outjs
(FFI files copied from ./example/output
)
Run
Generate Lua files to ./lua/outlua
Copy FFI files (manually for now) from pslua-ffi
cp -r [clonedir]/pslua-ffi/effect/* ./lua/outlua
cp -r [clonedir]/pslua-ffi/console/* ./lua/outlua
cp -r [clonedir]/pslua-ffi/prelude/* ./lua/outlua
Run
Generate Dart files to ./dart/outdart
Copy FFI files (manually for now) from psdart-ffi
cp -r [clonedir]/psdart-ffi/effect/* ./dart/outdart
cp -r [clonedir]/psdart-ffi/console/* ./dart/outdart
cp -r [clonedir]/psdart-ffi/prelude/* ./dart/outdart
Run
It is not cut out as a library for now, but is a monorepo to modify and check the model easily.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4