mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
PureScript: fix README, Dockerfile and Makefile
This commit is contained in:
parent
8387b34389
commit
d00e383dd4
@ -1 +0,0 @@
|
|||||||
15273
|
|
12
README.md
12
README.md
@ -42,7 +42,7 @@ process guide](process/guide.md) there is also a [mal/make-a-lisp
|
|||||||
FAQ](docs/FAQ.md) where I attempt to answer some common questions.
|
FAQ](docs/FAQ.md) where I attempt to answer some common questions.
|
||||||
|
|
||||||
|
|
||||||
**3. Mal is implemented in 86 languages (92 different implementations and 114 runtime modes)**
|
**3. Mal is implemented in 87 languages (93 different implementations and 115 runtime modes)**
|
||||||
|
|
||||||
| Language | Creator |
|
| Language | Creator |
|
||||||
| -------- | ------- |
|
| -------- | ------- |
|
||||||
@ -110,6 +110,7 @@ FAQ](docs/FAQ.md) where I attempt to answer some common questions.
|
|||||||
| [PostScript](#postscript-level-23) | [Joel Martin](https://github.com/kanaka) |
|
| [PostScript](#postscript-level-23) | [Joel Martin](https://github.com/kanaka) |
|
||||||
| [PowerShell](#powershell) | [Joel Martin](https://github.com/kanaka) |
|
| [PowerShell](#powershell) | [Joel Martin](https://github.com/kanaka) |
|
||||||
| [Prolog](#prolog-logical-language) | [Nicolas Boulenguez](https://github.com/asarhaddon) |
|
| [Prolog](#prolog-logical-language) | [Nicolas Boulenguez](https://github.com/asarhaddon) |
|
||||||
|
| [PureScript](#purescript) | [mrsekut](https://github.com/mrsekut) |
|
||||||
| [Python](#python-2x-and-3x) (2.X & 3.X) | [Joel Martin](https://github.com/kanaka) |
|
| [Python](#python-2x-and-3x) (2.X & 3.X) | [Joel Martin](https://github.com/kanaka) |
|
||||||
| [Python #2](#python2-3x) (3.X) | [Gavin Lewis](https://github.com/epylar) |
|
| [Python #2](#python2-3x) (3.X) | [Gavin Lewis](https://github.com/epylar) |
|
||||||
| [RPython](#rpython) | [Joel Martin](https://github.com/kanaka) |
|
| [RPython](#rpython) | [Joel Martin](https://github.com/kanaka) |
|
||||||
@ -938,6 +939,15 @@ cd impls/prolog
|
|||||||
swipl stepX_YYY
|
swipl stepX_YYY
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### PureScript
|
||||||
|
The PureScript implementation requires the spago compiler version 0.20.2.
|
||||||
|
|
||||||
|
```
|
||||||
|
cd impls/purs
|
||||||
|
make
|
||||||
|
node ./stepX_YYY.js
|
||||||
|
```
|
||||||
|
|
||||||
### Python (2.X and 3.X)
|
### Python (2.X and 3.X)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -30,8 +30,9 @@ RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|||||||
# Install nodejs
|
# Install nodejs
|
||||||
RUN apt-get -y install nodejs
|
RUN apt-get -y install nodejs
|
||||||
|
|
||||||
# Install purescript
|
# Install purescript and deps
|
||||||
RUN apt-get install -y libtinfo5
|
RUN apt-get install -y git libtinfo5
|
||||||
RUN npm install -g --unsafe-perm purescript spago
|
RUN npm install -g --unsafe-perm purescript spago
|
||||||
|
|
||||||
ENV NPM_CONFIG_CACHE /mal/.npm
|
ENV NPM_CONFIG_CACHE /mal/.npm
|
||||||
|
ENV HOME /mal
|
@ -1,5 +1,9 @@
|
|||||||
src/step%:
|
step%.js: src/step%.purs $(OTHER_SRCS) node_modules/readline-sync
|
||||||
spago bundle-app --main ${${@F}} --to $(@F:%.purs=%.js)
|
spago bundle-app --main $($(<:src/%=%)) --to $@
|
||||||
|
|
||||||
|
|
||||||
|
node_modules/readline-sync:
|
||||||
|
npm install
|
||||||
|
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
@ -15,3 +19,10 @@ step7_quote.purs = Mal.Step7
|
|||||||
step8_macros.purs = Mal.Step8
|
step8_macros.purs = Mal.Step8
|
||||||
step9_try.purs = Mal.Step9
|
step9_try.purs = Mal.Step9
|
||||||
stepA_mal.purs = Mal.StepA
|
stepA_mal.purs = Mal.StepA
|
||||||
|
|
||||||
|
OTHER_SRCS = src/Readline.js src/Readline.purs src/Types.purs src/Reader.purs \
|
||||||
|
src/Printer.purs src/Env.purs src/Core.purs
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf step*.js output/*
|
Loading…
Reference in New Issue
Block a user