🔧 Scala Browser Compiler
Compile Scala to TASTy in your browser
📝 Scala Source
// Try clicking Run to execute this code! val message = "Hello from the browser!" println(message) // Fibonacci sequence def fib(n: Int): Int = { if (n <= 1) n else fib(n - 1) + fib(n - 2) } val result = fib(10) println("Fibonacci(10) = " + result) // List operations val nums = List(1, 2, 3, 4, 5) val doubled = nums.map(x => x * 2) println("Doubled: " + doubled.mkString(", "))
📊 Output
Click a button to compile or parse...
▶️ Run
🔨 Compile
🔍 Parse
✓ Check Syntax
🗑️ Clear
✅ Supported Features
❌ Unsupported Features