Skip to content
/ Vapor Public

Vapor (vLang) is a dynamic (but supports a type system) programming language that transpiles down to valid python code.

Notifications You must be signed in to change notification settings

mwd1993/Vapor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vapor

Vapor (vLang) is a dynamic (but supports a type system) programming language that transpiles down to valid python code.

See more here at the official website: https://mwd1993.github.io/Vapor/index.html

Vapor IDE In Development ( Coming Soon! )

Image Description: Utilizes a standard library (written in Vapor), to make a window/app, stay on top of all other windows and uses cmd line logic (potentially)

Getting Started

Download the Compiler and then run your .vap files like so

vapor_parsor.exe path/to/my_vapor_file.vap args1 arg2 etc

Syntax Examples

printing made simple, included fstring functionality

message = "Hello World From Vapor"

'the message is [[message]]'

simple for loops

message = "Hello World From Vapor"

message each word {
  'current word is [[word]]'
}

# enumeration
message each word with index {
  'current word is [[word]] at loop index [[index]]'
}

simple if statement functionality, suffix statement with 'true' or 'false'

message = "Hello World From Vapor"

len(message) > 0 true {
  'message has [[len(message)]] words'
}

Fizz Buzz

m do_fizz_buzz() {
    range(101) each number {
        number % 3 == 0 true {
            'Fizz'
            continue
        }
        number % 5 == 0 true {
            'FizzBuzz'
            continue
        }
        '[[number]]'
    }
    -> 'this is a return value'
}

return_value = do_fizz_buzz()

About

Vapor (vLang) is a dynamic (but supports a type system) programming language that transpiles down to valid python code.

Resources

Stars

Watchers

Forks

Packages

No packages published