Viper, it Bytes (pun intended) is a dynamically-typed, byte-interpreted programming language written in C. This project is based out of a language called clox inspired from the book Crafting Interpreters.
- Free & Open Source.
- Bytecode virtual machine written in C language.
- Easy to Code (Constructs similar to Python & JavaScript).
- High Level interpreted language.
- Dynamically-Typed.
- Support for Object Oriented Programming.
- Dynamic memory allocation & Garbage collector (Mark-Sweep Algorithm).
Install Viper guide.
names = ["Vipers", "World!", ""]
class HelloPrinter {
fn hello(name){
print "Hello " + str(name)
}
}
printer = HelloPrinter()
for (i = 0 ; i < len(names) ; i = i + 1){
if ( names[i] != "") {
printer.hello(names[i])
}
}
If you would like to contribute to the project or report any bugs, feel free to raise this in the Github Issue tracker.