Skip to content

vyacheslavhere/watt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

โšก๐Ÿน Watt

A lightweight, expressive scripting language powered by VoltVM โšก๐Ÿน

About

Watt is a lightweight programming language designed to assist developers. Built entirely in pure Rust, it offers great performance and a smooth development experience. ๐ŸŒพ๐Ÿ’–

Contribution

Don't be shy, if you can help! We're glad to see your contributions.

Examples

Simple example is here. ๐Ÿน

// importing io
import 'std.io'

// a tractor ๐Ÿšœ
type Tractor(storage) {
    // amount of ๐ŸŒพ
    value := 0
    // fill ๐ŸŒฟ
    fn fill(value) {
        if self.value + value > storage {
            self.value = storage
            return null
        }
        self.value += value
    }
    // print ๐Ÿ“œ
    fn print() {
        io.print('tractor value: ')
        io.println(self.value)
    }
}

tractor := new Tractor(100)
tractor.fill(50)
tractor.print()
tractor.fill(70)
tractor.print()

ToDo โŒ›

  • std libraries: statistics, ffi, graphics, http, etc...
  • optimizations.

About

๐Ÿน Lightweight, dynamically typed, simple intepreted scripting programming language.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •