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: 10 months ago
JSON representation
a simple programming language written in js.
- Host: GitHub
- URL: https://github.com/bethropolis/mimo
- Owner: bethropolis
- Created: 2024-04-08T23:20:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T02:11:20.000Z (about 1 year ago)
- Last Synced: 2025-04-12T02:08:52.889Z (10 months ago)
- Topics: ast, compiler, javascript, lexer, parser, programming-language
- Language: JavaScript
- Homepage: https://mimo-lang.vercel.app/
- Size: 2.43 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mimo
[](https://github.com/bethropolis/mimo/releases/)
[](#license)
[](https://github.com/bethropolis/mimo/actions/workflows/deploy.yml)
a simple programming language written in js.
## Instalation
```sh
# install globally
npm install -g mimo-lang
# install project scope
npm install mimo-lang
```
### Global cli commands
the folowing are available commands and flags for the cli tool.
```bash
$ mimo [FILENAME] [-o|--output] [-t|--time] [-h|--help] [-q|--quiet] [-d|--debug] [-v|--version]
```
example `mimo exampleFile.mimo`
### Library usage
example:
```js
import Mimo from "../index.js";
let mimo = new Mimo();
let code = /* your code here*/
mimo.run(code);
```
## Language syntax:
```
function add(a,b)
return + a b
endfunction
set x 5
set y 2
call add(x,y) -> result
show result
```
more example in the [test directory]('./test/mimo/')
## Docs
check out the [documentation](./docs.md) file for more info.
## About
this is just a simple language i created to learn more about how programing languages work.
contributions are welcome.
## License
Released under [MIT](./LICENSE)
happy coding 💜