V++

From Esolang
Jump to navigation Jump to search
V++
Paradigm(s) object-oriented, functional
Designed by VMGP Official
Appeared in 2016
Computational class Turing complete
Reference implementation [1]
File extension(s) .vpp

Overview

V++ is a small programming language made for fun. It is an interpreted, strongly-typed language. It has functions, advanced math and IO support.

V++ first appeared in 2016 in private tests. It was released for the public in November 2020.

Documentation

For documentation go to https://github.com/vpp-lang/vpp-source/wiki

Code samples

Hello world program

function main ()
command (0x0005,"Hello world!",null)
command (0x0006,null)
exit
end function

Adding two numbers

function main ()
define result as number = 0
vppmath :: add (result,5,7,null)
command (0x0004,"5+7=",null)
command (0x0004,result,null)
command (0x0006,null)
exit
end function

Write to file

function main ()
command (0x0012,"C:\test.txt","Hello from V++",null)
command (0x0006,null)
exit
end function

External links