https://github.com/pabloreszczynski/t3
Tarea 3 de lenguajes
https://github.com/pabloreszczynski/t3
functional-js interpreter
Last synced: 12 months ago
JSON representation
Tarea 3 de lenguajes
- Host: GitHub
- URL: https://github.com/pabloreszczynski/t3
- Owner: PabloReszczynski
- License: mit
- Created: 2016-12-10T20:58:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T14:35:34.000Z (over 9 years ago)
- Last Synced: 2025-02-12T14:57:43.191Z (over 1 year ago)
- Topics: functional-js, interpreter
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tarea 3 de lenguajes de programación
### por Pablo Reszczynski
Este intérprete está escrito en javascript. Usando la libreria pun.js para
tener pattern matching y ADTs, haciendo más fácil poder escribir el intérprete
de manera funcional.
## Instrucciones para correr el programa
### Requerimientos:
Node 6.2.2 con npm
[Se puede instalar usando nvm](https://github.com/creationix/nvm)
```bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
nvm install 6.2.2
```
Para instalar las dependencias debes correr:
```bash
npm install
```
Para correr los tests:
```bash
npm test
```
Para ejecutar un programa:
```bash
node main.js "{+ 1 2}"
3
```
o bien, ejecutando sin un argumento lleva a un prompt del interprete.