Debian Codegraph @

examples/prism-wren.html

raw symbols SCIP
1 <h2>Full example</h2>
2 <pre><code>// Source: https://wren.io/
3
4 System.print("Hello, world!")
5
6 class Wren {
7 flyTo(city) {
8 System.print("Flying to %(city)")
9 }
10 }
11
12 var adjectives = Fiber.new {
13 ["small", "clean", "fast"].each {|word| Fiber.yield(word) }
14 }
15
16 while (!adjectives.isDone) System.print(adjectives.call())
17 </code></pre>