Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dhconnelly committed Nov 26, 2023
1 parent 69be2cc commit 13ae541
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ built-ins for string processing, garbage collection):
- [x] scanner
- [x] parser
- [x] analyzer
- [x] emit minimal wasm binary
- [ ] translator
- [ ] emitter
- [ ] serializer
- [ ] end-to-end testing
- [ ] strings
- [ ] generic external print function
- [ ] garbage collection

add features:

- [ ] recursion and mutual recursion
- [ ] forward references for globals
- [ ] return types
- [ ] assignment
- [ ] conditionals
- [ ] loops
- [ ] assignment
- [ ] recursion and mutual recursion
- [ ] forward references for globals
- [ ] structs
- [ ] vecs
- [ ] maps
Expand All @@ -35,6 +37,8 @@ refactoring:
- [x] static func type in ast
- [ ] just one From<io::Error> in scanner
- [ ] add back (line, col) tracking
- [ ] better peek
- [ ] better tokens
- [ ] nice error reporting
- [ ] improve the algebra
- [ ] simplify the awful functions
Expand Down Expand Up @@ -83,7 +87,6 @@ what I think is necessary to solve Advent of Code puzzles.
Dependencies:

- [Rust](https://www.rust-lang.org/) (only if building from source)
- [wasmtime](https://wasmtime.dev/) to run compiled programs

To build from source:

Expand All @@ -101,8 +104,8 @@ To use a pre-built release:

## Usage

junec FILE
wasmtime FILE.wasm
junec examples/hello.june
junevm examples/hello.wasm

For more usage information, run `junec --help`. For examples, see `examples/`.

Expand All @@ -112,7 +115,6 @@ For more details on wasm, wasi, and wasmtime:

- [WebAssembly Specification](https://webassembly.github.io/spec/core/)
- [Wasmtime documentation](https://docs.wasmtime.dev/)
- [WASI Document Guide](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-documents.md)

This is my eighth hobby language implementation. Here are the previous ones:

Expand Down
3 changes: 1 addition & 2 deletions examples/ints.june
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ fn foo(x: int) {
}

fn main() {
foo(5);
foo(27);
foo(5 + 7);
}

0 comments on commit 13ae541

Please sign in to comment.