What is FilaScript?
FilaScript is a programming language. A program is a text file ending in .fsig that tells the computer what to do,
step by step. FilaScript was made for FilaSignal, the Minecraft mod, but the language exists on its own: you can learn
it and run programs on your computer without Minecraft.
fn main() { name = "Alex" print("Hello, " + name + "!")}Hello, Alex!What it is good at
Section titled “What it is good at”- Reacting to things that happen. Programs often wait for an event, such as a timer or a device noticing a player, and run a short handler each time.
- Being safe. A program can only do what its host allows. In the standalone tool it can print text and compute. It cannot read your files, use the internet or run forever: every run has a work budget.
- Being readable. There are no semicolons to remember, no
letbefore variables and no confusing “truthy” values.ifwants a realtrueorfalse, andiscompares values.
What it looks like to experienced programmers
Section titled “What it looks like to experienced programmers”FilaScript is dynamically typed with optional type annotations, lexically scoped with curly braces, and uses keywords
for logic (and, or, not, is, is not). It has numbers (IEEE 754 doubles), strings, booleans, nil, lists,
tuples, string-keyed dictionaries, classes with one constructor, enums, multiple return values, JSON and event
handlers. It deliberately has no closures, inheritance, exceptions or modules. See the
known limitations.
Where to go next
Section titled “Where to go next”Learn the languageValues, control flow, functions, collections and classes.
Use it in MinecraftThe FilaSignal mod adds devices and events.