SkiFlow Language Support for VS Code
Syntax highlighting, snippets, and themes for the SkiFlow programming language.
Supported File Types
| Extension |
Description |
.flow |
SkiFlow program file |
.skf |
SkiFlow program file |
.msf |
SkiFlow module file |
Features
Syntax Highlighting
Themes
- SkiFlow Dark — based on Catppuccin Mocha palette
- SkiFlow Light — based on Catppuccin Latte palette
Snippets
| Prefix |
Description |
flow |
Variable declaration |
fun |
Function with in/out params |
if |
If statement |
ifelse |
If-else statement |
while |
While loop with counter |
from |
From ... import |
importas |
Import with alias |
usemath |
Import common math functions |
usestring |
Import common string functions |
uselist |
Import common list functions |
useio |
Import io functions |
newmodule |
Module file template |
factorial |
Recursive factorial |
fibonacci |
Recursive fibonacci |
Installation
From VSIX (manual)
- Download
skiflow-0.1.0.vsix
- In VS Code:
Ctrl+Shift+P → "Extensions: Install from VSIX..."
- Select the file
From source
cd skiflow-vscode
npm install
npm run compile
npx vsce package
# Then install the generated .vsix
Language Quick Reference
// Variables
flow x = 42
flow name = "skiflow"
// Mutation
x <- x + 1
// Pipe operator
x * 2 -> doubled
print doubled
// Functions
fun add(in:(a, b), out:(r)) {
r = a + b
}
add(3, 4) -> result
// Control flow
if result > 5 {
print "big"
} else {
print "small"
}
// While loop
flow i = 0
while i < 5 {
print i
i <- i + 1
}
// Modules
from math import { sqrt, pi }
sqrt(16) -> s // 4
print pi // 3.14159
from string import { upper, format }
format("Hello {}!", "World") -> msg
upper(msg) -> loud
print loud // HELLO WORLD!
from list import { range, sum, sort }
range(1, 6) -> nums // [1, 2, 3, 4, 5]
sum(nums) -> total // 15
| |