V++ is a small static-typed interpreted language made for running small programs in a console window.
This repository contains vppsetup
, vpps
, vppi
, vpppm
and interpreter extensions. In order to install the V++ Runtime Environment you must check releases. For documentation check the V++ wiki.
In case you want to create V++ scripts and need syntax highlighting, you can install the official V++ VSCode extension
Indents must be used with tabs, not spaces. If you use space indents, the interpreter will not execute the code.
- Security
- Customizabilty
- Easy to setup and create a new project
!! SCRIPTS MUST HAVE A .vpp
EXTENSION IN ORDER FOR THE INTERPRETER TO RUN THEM !!
In order to run a script in V++ you can:
- drag the script into
vppi
or the V++ shortcut on your desktop. - run V++ in
cmd
(Windows Command Prompt) with the first parameter being the script that you want to run (vppi test.vpp
)
function test ()
command (0x0006,null)
exit
end function
function main ()
command (0x0001,"I am a title!",null)
command (0x0008,"I am a message box!",null)
test ()
end function
When you load a script a new interpreter instance that runs in parallel with the other instances. When a script is loaded by the user/another app via a command line call, there is created a master interpreter that can log data and is the main script. When a script is loaded by main script/master interpreter via the @Include keyword there is created a slave interpreter which works the same as a master interpreter but can be ordered to execute a function or get/set a value.
After the loading of the script the interpreter (either master or slave) will enter the setup phase, where setup keywords like @EntryPoint
, @Include
and function
. The setup phase defines functions and sets things up before the runtime phase. After the setup finishes, the interpreter enters in the runtime phase, where the script is executed.
The first V++ interpreter was made in 2017, but it was very unstable and didn't have an official name. The syntax was strange. (printline Hello world!
).
Nothing interesting happened, just decided to remake V++ from scratch, which resulted in today's V++.
Made a lot of progress, the syntax of V++ in 2019 is very similar to the one in 1.0.0.0
.
Released V++ 1.0.0.0
on 19 Nov 2020.
First prerelease of V++. Dropped support for V++ 1.0.0.0.
To report bugs or request new feautures go to the Issues tab or click here.
For discussions/requesting a library/dependecy for the V++ package manager go to the discussions tab or click here.
For donating click this link: https://link-to.net/337571/vppdonation. It is free, it does not cost you anything and it helps me develop V++ more.