Skip to content

Standard Library ​

Import any built-in module with import <name> or import <name> as <alias>. Call methods with <method> of <alias> (or <method> of <alias> contains <arg1> and <arg2>).

Arity-Aware Nesting

Fixed-arity standard library calls stop parsing arguments once their expected count is reached, so you can nest them naturally inside variadic calls like ln of print contains abs of math contains negative 9 and pow of math contains 2 and 8 without needing group ... done.

print ​

MethodSignatureDescription
ln(...any) → voidPrints all arguments space-separated followed by a newline (fmt.Println)
raw(...any) → voidPrints all arguments with no trailing newline (fmt.Print)
text
import print
ln of print contains say score is end and 95
raw of print contains say loading end

math ​

MethodSignatureDescription
abs(num) → numAbsolute value
min(num, num) → numSmaller of two integers
max(num, num) → numLarger of two integers
pow(num, num) → numFast integer exponentiation (base^exp)
sqrt(num) → numInteger square root
rand(num) → numRandom integer in [0, max) via math/rand/v2
clamp(num, num, num) → numClamps val into [lo, hi]
text
import math
let p be pow of math contains 2 and 10
let c be clamp of math contains 50 and 0 and 10

text ​

MethodSignatureDescription
upper(text) → textConverts to uppercase
lower(text) → textConverts to lowercase
trim(text) → textStrips leading and trailing whitespace
join(list of text, text) → textJoins a list of strings with a separator
split(text, text) → list of textSplits a string by a separator
has(text, text) → flagReturns true if string contains substring
replace(text, text, text) → textReplaces all occurrences of old with new
fromnum(num) → textFormats an integer as base-10 text
tonum(text) → numParses base-10 text into an integer (0 on error)
length(text) → numByte length of string

file ​

MethodSignatureDescription
read(text) → textReads entire file contents as text
write(text, text) → voidWrites text to file (creates or overwrites)
append(text, text) → voidAppends text to file (creates if missing)
exists(text) → flagReturns true if the path exists
text
import file
write of file contains path and say hello end
append of file contains path and say  world end
let content be read of file contains path

time ​

MethodSignatureDescription
now() → numCurrent Unix timestamp in milliseconds
sleep(num) → voidPauses execution for <ms> milliseconds
text
import time
let start be now of time
sleep of time contains 100
let elapsed be now of time minus start

FakeScript (.fks) — Strictly zero punctuation symbols, native Go-powered binaries.