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

https://github.com/bethropolis/mimo

a simple programming language written in js.
https://github.com/bethropolis/mimo

ast compiler javascript lexer parser programming-language

Last synced: 14 days ago
JSON representation

a simple programming language written in js.

Awesome Lists containing this project

README

          


Mimo mascot



npm version


GitHub release


License


Documentation


A minimal prefix-notation programming language

---

## Installation

```bash
npm install -g mimo-lang
```

## Usage

### Run Programs

```bash
mimo path/to/program.mimo
mimo -e "+ 1 2"
echo "+ 1 2" | mimo
```

### REPL

```bash
mimo repl
```

### CLI Commands

```bash
mimo run # Run a file
mimo repl # Start REPL
mimo fmt --write # Format files
mimo lint # Lint files
mimo test # Run tests
```

## Syntax

```mimo
function add(a, b)
return + a b
end

call add(4, 8) -> result
show result
```

More examples in [`test/source/`](./test/source).

## Development

```bash
bun install
bun run check
```

## Playground


Mimo playground

The playground is a web application that allows you to run Mimo code in your browser.

## About
this is just a simple language i created to learn more about how programing languages work.
contributions are welcome.

## Links

- [Documentation](https://bethropolis.github.io/mimo/)
- [Playground](https://mimo-lang.vercel.app/playground/)
- [GitHub](https://github.com/bethropolis/mimo)

## License

Released under [MIT](./LICENSE)

happy coding 💜