Debian Codegraph @

examples/prism-haxe.html

raw symbols SCIP
1 <h2>Strings and string interpolation</h2>
2 <pre><code>"Foo
3 bar $baz"
4 'Foo
5 bar'
6 "${4 + 2}"</code></pre>
7
8 <h2>Regular expressions</h2>
9 <pre><code>~/haxe/i
10 ~/[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z][A-Z][A-Z]?/i
11 ~/(dog|fox)/g</code></pre>
12
13 <h2>Conditional compilation</h2>
14 <pre><code>#if !debug
15 trace("ok");
16 #elseif (debug_level > 3)
17 trace(3);
18 #else
19 trace("debug level too low");
20 #end</code></pre>
21
22 <h2>Metadata</h2>
23 <pre><code>@author("Nicolas")
24 @debug
25 class MyClass {
26 @range(1, 8)
27 var value:Int;
28
29 @broken
30 @:noCompletion
31 static function method() { }
32 }</code></pre>
33
34 <h2>Reification</h2>
35 <pre><code>macro static function add(e:Expr) {
36 return macro $e + $e;
37 }</code></pre>