All Projects → Lapz → Tox

Lapz / Tox

Licence: mit
Tox is a statically typed version programming language that is written in rust.

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Tox

Jvm
JVM written in Rust
Stars: ✭ 346 (+1341.67%)
Mutual labels:  vm
Vmcli
A set of utilities (vmcli + vmctl) for macOS Virtualization.framework
Stars: ✭ 571 (+2279.17%)
Mutual labels:  vm
Lc3 Vm
Write your own virtual machine for the LC-3 computer!
Stars: ✭ 631 (+2529.17%)
Mutual labels:  vm
16bitjs
💻 A 16-bit virtual machine, including assembly language with 37 instructions, binary assembler, and a step through debugger
Stars: ✭ 427 (+1679.17%)
Mutual labels:  vm
Luago Book
《自己动手实现Lua》随书源代码
Stars: ✭ 514 (+2041.67%)
Mutual labels:  vm
Zetavm
Multi-Language Platform for Dynamic Programming Languages
Stars: ✭ 592 (+2366.67%)
Mutual labels:  vm
Cgpwn
A lightweight VM for hardware hacking, RE (fuzzing, symEx, exploiting etc) and wargaming tasks
Stars: ✭ 345 (+1337.5%)
Mutual labels:  vm
Radon
A scripting language.
Stars: ✭ 22 (-8.33%)
Mutual labels:  vm
Moarvm
A VM with adaptive optimization and JIT compilation, built for Rakudo
Stars: ✭ 537 (+2137.5%)
Mutual labels:  vm
Mac
bytecode interpreter in c (blog post)
Stars: ✭ 628 (+2516.67%)
Mutual labels:  vm
Embiggen Disk
embiggden-disk live-resizes a filesystem after first live-resizing any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT partition table
Stars: ✭ 440 (+1733.33%)
Mutual labels:  vm
Awesome Wasm Runtimes
A list of webassemby runtimes
Stars: ✭ 490 (+1941.67%)
Mutual labels:  vm
Virtlet
Kubernetes CRI implementation for running VM workloads
Stars: ✭ 620 (+2483.33%)
Mutual labels:  vm
Vm86
🍔 A x86 Script Instruction Virtual Machine
Stars: ✭ 410 (+1608.33%)
Mutual labels:  vm
Vm
💻☁📦 The (official) Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4).
Stars: ✭ 716 (+2883.33%)
Mutual labels:  vm
Opensmalltalk Vm
Cross-platform virtual machine for Squeak, Pharo, Cuis, and Newspeak.
Stars: ✭ 345 (+1337.5%)
Mutual labels:  vm
Q3vm
Q3VM - Single file (vm.c) bytecode virtual machine/interpreter for C-language input
Stars: ✭ 585 (+2337.5%)
Mutual labels:  vm
Deep Learning Vm
Sets up a VM with Keras, TensorFlow, TFLearn and Theano installed
Stars: ✭ 23 (-4.17%)
Mutual labels:  vm
Ethereumjs Monorepo
Monorepo for the Ethereum VM TypeScript Implementation
Stars: ✭ 813 (+3287.5%)
Mutual labels:  vm
Securityworker
The best javascript code protection solution ever.
Stars: ✭ 626 (+2508.33%)
Mutual labels:  vm

Grammar

Build Status

TOX

Tox is a statically typed version of lox that is written in rust.

Usage

USAGE:
    tox [FLAGS] [source]

FLAGS:
    -h, --help         Prints help information
    -i, --interpter    Run in interpreter mode
    -V, --version      Prints version information

ARGS:
    <source>    The source code file

Example Program

fn fib(n:int) -> int {
    if (n < 2) 
      return n;
    return fib(n - 2) + fib(n - 1);
}

A simple example that makes of uses of the classes

class Toggle {
    state:bool;
  
    fn value() -> bool {
      return this.state;
    }
  
    fn activate() -> Toggle {
      this.state = !this.state;
      return this;
    }
}
  
fn main() {
  var toggle  = Toggle{state:true};

  print toggle.activate().value();

  print toggle.activate().value();
}

TODO

  • [ ] Implement exhaustive pattern matching
  • [ ] Implement monomorphistation
  • [ ] Implement the gc
  • [ ] Add constant folding

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].