Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marihachi/milli-lang
A toy language made with TypeScript. We execute a code by compiling it for the VM.
https://github.com/marihachi/milli-lang
bytecode bytecode-interpreter compiler interpreter parser toy-language virtual-machine vm
Last synced: 14 days ago
JSON representation
A toy language made with TypeScript. We execute a code by compiling it for the VM.
- Host: GitHub
- URL: https://github.com/marihachi/milli-lang
- Owner: marihachi
- License: mit
- Created: 2023-10-26T13:37:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-05T11:49:27.000Z (about 1 year ago)
- Last Synced: 2024-10-04T20:25:23.739Z (about 1 month ago)
- Topics: bytecode, bytecode-interpreter, compiler, interpreter, parser, toy-language, virtual-machine, vm
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# milli-lang
A toy language made with TypeScript.
We execute a code by compiling it for the VM.## Installation
Linux or Windows(WSL) supported.```
$ npm i
$ npm run build
```## Usage
source file: `*.mil`
bytecode file: `*.mbc`
assembly file: `*.asm`Compile a milli-lang source(.mil) to a bytecode file(.mbc):
```
$ npm run compile
```Run a bytecode file(.mbc):
```
$ npm run start
```### Assemble
Assemble an assembly text(.asm) to a bytecode file(.mbc):
```
$ npm run asm
```Disassemble a bytecode file(.mbc) to an assembly text(.asm):
```
$ npm run disasm
```## License
MIT