Tako is a small, flexible interpreted scripting language made for tiny operating systems, embedded devices, or just having fun.
Created by @minhmc2007, Tako is designed to be minimal, hackable, and educational β written entirely in C with no dependencies (expect compiler).
- π§ C-style scripting:
set x = 10,add x 5,if x > 10 - π Human-readable syntax, easy to learn and write
- π Supports control flow:
if,loop,end - π¨οΈ Powerful
printsystem: strings, variables, combined - βοΈ Self-contained interpreter:
tako.c β οΈ (Optional) Barebones compiler (compiler.c) for ELF output β limited feature support
# Set a variable
set x = 10
# Add to it
add x 5
# Conditional
if x > 10
print "x is bigger than 10" x
end
# Looping
loop 3
print "Looping..." x
add x 1
end
# Final output
print "Final x:" x
π Usage
π§ Run Scripts (Recommended)
Compile and run using the interpreter:
gcc tako.c -o tako ./tako script.tako
π οΈ Compile to Native ELF Binary (
β The compiler (compiler.c) only supports very basic scripts. For real projects, use tako.c.
gcc compiler.c -o compiler ./compiler script.tako output_binary chmod +x output_binary ./output_binary
π File Types
Extension Description
.tako Tako language source code
.asm (Optional) assembly output
.o ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
π Why βTakoβ?
βTakoβ (γγ) means octopus in Japanese β small, smart, and flexible. Just like this language: lightweight, expandable, and surprisingly useful π.
π€ Author
Made by @minhmc2007
Part of the Blue Archive Linux / TinyDOS / OS dev journey!
πͺͺ License
MIT License β open source and hack-friendly.
