Skip to content

A language designed to be minimal, expressive, elegant. [WIP]

License

Notifications You must be signed in to change notification settings

hanabidotdev/vex-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Vex Programming Language

A language designed to be minimal, expressive, elegant.

Example

#
# simple example to showcase *some* features
#

# import the IO module
require "stdio"
# libc bindings
require "libc" 

# This is a constant, $ means constant!
$Name = "vex"

def main(argc, argv)
    io.println("Hello, World!")

    my_var = "This is my variable, dont touch it!"

    libc.printf("My name is %s", $Name)

    my_var = "I touched it ;D"

    for arg in argv
        io.println(arg)
    end

    if argc >= 69 
        return 420
    end

    return 0
end

note: the syntax may change

Planned "big" features

  • powerful macros
  • hopefully simple generics
  • compile-time things

Releases

No releases published