Since we can run JavaScript using various interpreters, like V8 or Rhino, I thought there should be a way to run CoffeeScript code inside a terminal as well.
Technically, I can do that by using Node.js while running javascript, but I’m curious if there is a standalone interpreter specifically designed for CoffeeScript.
No. You can launch a coffeescript file with
coffee filename, but this will just compile the coffeescript file in-RAM and run it as javascript. Well, actually someone did write an interpreter for coffeescript, but that interpreter is written in javascript or coffeescript or so and therefore has to run inside of a JS engine, too. Also, it’s slow as hell because it’s an interpreter and not a JIT compiler.As I said, just use the
coffeecommand.