Skip to content

rahuldshetty/viper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

talion logo

no-languages commit-activity stars

Viper, it Bytes

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.

Features

  • 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).

Installation

Install Viper guide.

Example

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])
    }
}

Contributing

If you would like to contribute to the project or report any bugs, feel free to raise this in the Github Issue tracker.

About

Viper, it Bytes; is a interpreted programming language.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages