Skip to content
Vihan edited this page Mar 4, 2018 · 1 revision

VSL is easy to use once you have it installed. VSL supports 3 primary ways of writing code:

  • REPL - for messing around, testing code snippets
  • File(s) - for scripts and larger code snippets
  • Modules - for projects and larger programs

A REPL is prompt which allows you to enter VSL code and it will immediately (JIT) execute it so you can see the result. VSL modules are elaborated in the module section.

REPL

To open the REPL run vsl (or vsl -p). Once opened, you can run VSL code and it'll immediately be executed.

$ vsl
vsl> func main() { print("Hello, World!") }
Hello, World!
vsl>