https://github.com/dczajkowski/toothpick
Toothpick is a simple functional language that transpiles to JavaScript AST
https://github.com/dczajkowski/toothpick
Last synced: 11 months ago
JSON representation
Toothpick is a simple functional language that transpiles to JavaScript AST
- Host: GitHub
- URL: https://github.com/dczajkowski/toothpick
- Owner: DCzajkowski
- Created: 2019-04-11T23:47:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T01:15:35.000Z (over 6 years ago)
- Last Synced: 2025-01-10T03:12:28.204Z (about 1 year ago)
- Language: Elixir
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

## Introduction
Toothpick is a programming language that compiles directly to JavaScript. It provides a modern syntax for purely functional solutions.
It has a very short list of reserved keywords and tokens which makes it very flexible.
The documentation can be found at https://toothpick.netlify.com.
## Installation
### Prerequisites
* Elixir 1.8 & Mix (`brew install elixir` on macOS)
### Installation steps
```bash
git clone git@github.com:DCzajkowski/toothpick.git
cd toothpick
```
### Compiling and running the application
```bash
source=test/stubs/function_without_arguments.tp; \
output=_build/output.js; \
mix toothpick $source -o $output \
&& node $output
```
### Running tests
```bash
mix test
```
### Running the code formatter
```bash
mix format
```