Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Example 2

Stanislav Mikhel edited this page May 29, 2017 · 1 revision

Open terminal and print here './vpsys' without additional arguments. This way the program will be opened as an interpretor. You should see invite string '>>'. If you want to close the program, print 'end'.

If you still have a file from previous example, you cat execute it using command

 Load "hello.vps" # execute file

VPSYS is not case sensitive, so you can write command in any way you like. Symbol '#' marks a string comment. Strings are also can be used as comments, but only in executable files.

Script can be loaded line by line using keyword 'dbg'

 Load dbg "hello.vps"

This way after each line will be asked a question, should it be executed or not. Write 'n' to avoid execution, if you wish.

Of course, any string can be written directly, without additional files. This way result will be the same - you will get its copy as output.

 >> "Hello World" 
 "Hello World"
Clone this wiki locally