Embedded Language

  • Wren: https://wren.io

    System.print("Hello, world!")
    
    class Wren {
      flyTo(city) {
        System.print("Flying to %(city)")
      }
    }
    
    var adjectives = Fiber.new {
      ["small", "clean", "fast"].each {|word| Fiber.yield(word) }
    }
    
    while (!adjectives.isDone) System.print(adjectives.call())