Rune Compiler
A language toolchain in one file
Ctrl+Enter to compile
Compile & Run
Fib
Fact
Source.rune
Ln 1, Col 1
;; Welcome to Rune ;; A Lisp-flavored language that compiles to JS (defn greet [name] (str "Hello, " name "!")) (def x 10) (def y 20) (defn abs [n] (if (< n 0) (- 0 n) n)) (defn factorial [n] (if (<= n 1) 1 (* n (factorial (- n 1))))) (print "Factorial of 5:" (factorial 5)) (print "Absolute of -42:" (abs -42))
Tokens
AST
Symbols
Type code and press Ctrl+Enter...
Console
Generated JS
Perf
ᚱ
Ready. Press Ctrl+Enter to compile.
Ready
0 tokens
0 nodes
0ms