Syntax Fundamentals
Learn the fundamental syntax structure where punctuation carries meaning and commands become rituals.
Command Structure
// Basic command formvS.command(parameters);// With parametersvS.enter(mode:collaborative);// Chained with colonvS.set(key:value);All vScript commands follow the pattern: vS. (namespace prefix) + command + () (parameter container) + punctuation operator.
Punctuation Semantics
In vScript, each punctuation mark carries functional meaning. Punctuation is not decorative—it's operational.
Soft execution, ambient context
vS.enter().Commit action, link to next
vS.plan("x");Force execution, ignite
vS.run()!Bind, associate, chain
vS.set(mode:creative)Lane/channel identifier
vS.route(#core)Address/position marker
vS.route(@0.73)Wildcard/all selector
vS.reservoir(taps:*)Approximate/fuzzy match
vS+.sense(~)Range/connection
vS.grid(3x3)Force flag
vS.command--fChaining & Composition
Commands can be chained together for complex operations using punctuation operators.
vS.bootstrap! : vS.grid(3x3, carriers:*, symbols:*) : vS.reservoir(size:27, feedback:0.33, taps:all) : vS.clock(2kHz)#core : vS.route(@0.73 #7) ; vS.speak(out:[dac0,leds,webserial,audio]) ;: binds commands in sequence
; commits and continues
. creates ambient flow
! forces immediate execution
Data Types
vS.inject("Hello, world");vS.inject{Multi-lineraw content};vS.setState(level: 42);vS.unlock(force: true);vS.adjust(ratio: 0.75);vS.process([1, 2, 3]);vS.configure({ mode: "creative", level: 3 });Naming Conventions
Commands & Keys
Use lowerCamelCase for commands and parameter keys
vS.setState(currentMode: "explorer");Constants
UPPER_SNAKE_CASE allowed for constants
vS.configure(MAX_RETRIES: 5);Comments
// Single line commentvS.enter(mode: "creative");/* Multi-line comment for longer explanations */vS.inject("content");Whitespace & Formatting
Whitespace is significant for readability but not semantic. Commands can be chained or separated for clarity.
// Chained executionvS.unlock(); vS.enter(); vS.setState("wild"); vS.run(full);// Separated for clarityvS.unlock();vS.enter(mode: "creative");vS.setState("focused");vS.run(full);