harrd-dev / vex-old

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU Lesser General Public License v2.1


Languages

Language:C 51.4%Language:Makefile 48.6%