Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laszlokorte/damasc-workspace

WIP Experiment of implementin a pattern matching based language in Rust, inspired by ES6 and Erlang
https://github.com/laszlokorte/damasc-workspace

erlang es6 pattern-matching rust

Last synced: about 20 hours ago
JSON representation

WIP Experiment of implementin a pattern matching based language in Rust, inspired by ES6 and Erlang

Awesome Lists containing this project

README

        

# Damasc Workspace

## How to use

### Running Tests

```shell
cargo test
```

### Run REPL

```shell
cargo run --bin damasc-cli
```

### Run HTTP Server

```shell
cargo run --bin damasc-http
```

### Run as WASM in Browser

> Requires `cargo install cargo-server` to run local webserver

```shell
wasm-pack build damasc-wasm --target web --out-dir public/wasm
cargo server --open --path damasc-wasm/public
```

### WASM with Cargo Watch

> Requires `cargo install cargo-watch`

```shell
cargo watch -- wasm-pack build damasc-wasm --target web --out-dir public/wasm
```

### Run Code Formatter and Linter

```shell
cargo clippy --fix --allow-dirty
cargo fmt
```