-
Notifications
You must be signed in to change notification settings - Fork 6
Usage
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.
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>
- Introduction
- Installation
- VSL By Example
- Usage
- WASM (WebAssembly)
- The Basics
- Your First Program
- Syntax
- Concepts
- Modules
- Advanced Details
- Interop
- VSL Development
- Common Errors