Skip to content

Commit

Permalink
Reorganize docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Grant Jeffries committed Nov 4, 2019
1 parent e0e468e commit 17e6ecf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 50 deletions.
53 changes: 4 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,12 @@ Bowtie is designed to support a WIP [book](http://lambdakit.com/), but those are

# In this repo

## [./bowtie](./bowtie)

![modules](./bowtie/misc/generated/modules.svg)

![sloc-bowtie](./bowtie/misc/generated/sloc-bowtie.svg)

Reference implementation. Parser, typechecker, and tree-walking evaluator (WIP).

## [./spec](./spec)

Informal specification with a description of the language and test examples (WIP).

## [./example-lib](./example-lib)

Bowtie code!

## [./example-app](./example-app)

Bowtie programs!

```sh
stack install
# installs bowtie, bowtie-js, bowtie-blueprint, and bowtie-visualize

bowtie ./example-app/lunar-lander.bowtie
-- this evaluates lunar-lander and prints the result to the screen.
-- to get this into a webpage and actually play it see ./bowtie-js
```

## [./bowtie-js](./bowtie-js)

![sloc-bowtie-js](./bowtie/misc/generated/sloc-bowtie-js.svg)

JavaScript transpiler (WIP).

```sh
stack install

bowtie-js example-app/lunar-lander.bowtie > bowtie-js/main.js

firefox ./bowtie-js/index.html
```

## [./bowtie-blueprint](./bowtie-blueprint)

![sloc-bowtie-blueprint](./bowtie/misc/generated/sloc-bowtie-blueprint.svg)

Linter for a types-only variant of the language (WIP).
+ [./bowtie](./bowtie): Reference implementation

## [./bowtie-visualize](./bowtie-visualize)
+ [./spec](./spec): Description of the language

![sloc-bowtie-visualize](./bowtie/misc/generated/sloc-bowtie-visualize.svg)
+ [./example-app](./example-app) and [./example-lib](./example-lib): Bowtie code

Tool to illustrate type inference or term evaluation (WIP).
+ [./bowtie-js](./bowtie-js): JavaScript transpiler
3 changes: 3 additions & 0 deletions bowtie-blueprint/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
![sloc-bowtie-blueprint](./bowtie/misc/generated/sloc-bowtie-blueprint.svg)

Linter for a types-only variant of the language (WIP).
11 changes: 11 additions & 0 deletions bowtie-js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
![sloc-bowtie-js](./bowtie/misc/generated/sloc-bowtie-js.svg)

JavaScript transpiler (WIP)

```sh
stack install bowtie-js # all these command from the root of the repo

bowtie-js example-app/lunar-lander.bowtie > bowtie-js/main.js

firefox ./bowtie-js/index.html
```
4 changes: 3 additions & 1 deletion bowtie-visualize/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
WIP
![sloc-bowtie-visualize](./bowtie/misc/generated/sloc-bowtie-visualize.svg)

Tool to illustrate type inference or term evaluation (WIP)

Be careful, this will write a ton of files out to the current directory.
8 changes: 8 additions & 0 deletions bowtie/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ Module layout:
![modules](./misc/generated/modules.svg)

Legend: `---->` means "imports".

```sh
stack install bowtie # all these command from the root of the repo

bowtie ./example-app/lunar-lander.bowtie
-- this evaluates lunar-lander and prints the result to the screen.
-- to get this into a webpage and actually play it see ../bowtie-js
```

0 comments on commit 17e6ecf

Please sign in to comment.