Appearance
Introduction
FakeScript (.fks) is an Ahead-of-Time (AOT) compiled programming language built around a single bold constraint: strictly zero punctuation symbols in source code.
Why FakeScript?
Most programming languages rely heavily on punctuation — =, {, }, (, ), ;, ,, ., ", +, -, *, / — to delimit structure. FakeScript replaces every symbol with plain English keywords separated by whitespace:
| Traditional Code | FakeScript |
|---|---|
let x = 10; | let x be 10 |
x = x + 1; | set x to x plus 1 |
"hello world" | say hello world end |
(2 + 3) * 4 | group 2 plus 3 done times 4 |
fmt.Println("hi", x) | ln of print contains say hi end and x |
if (x >= 10) { ... } | if x is at least 10 do ... end |
func add(a, b int) int | fn add with num a and num b returns num do |
Design Principles
- Zero Punctuation Enforcement: The lexer rejects punctuation symbols outside
say ... endstring literals andnotecomments, pointing directly to the offending line. - Real Native Performance: FakeScript is not interpreted.
fksclowers.fksto statically typed Go (int64,string,bool,[]T,func()) and compiles it withgo buildinto a standalone native binary. Recursivefib(32)runs in under 10 ms. - Lazy Action Bindings: Assigning a void action (like
ln of print contains say hi end) to a variable creates a deferred thunk (func()), invoked only when you reference that variable as a statement. - Zero Compiler Dependencies:
fksc.gouses only the Go standard library, so building the compiler requires nothing beyond Go itself.