Skip to content

A toy language made with TypeScript. We execute a code by compiling it for the VM.

License

Notifications You must be signed in to change notification settings

marihachi/milli-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A toy language made with TypeScript. We execute a code by compiling it for the VM.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published