/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/examples/prism-haxe.html
37 строк
676 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<h2>Strings and string interpolation</h2> <pre><code>"Foo bar $baz" 'Foo bar' "${4 + 2}"</code></pre> <h2>Regular expressions</h2> <pre><code>~/haxe/i ~/[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z][A-Z][A-Z]?/i ~/(dog|fox)/g</code></pre> <h2>Conditional compilation</h2> <pre><code>#if !debug trace("ok"); #elseif (debug_level > 3) trace(3); #else trace("debug level too low"); #end</code></pre> <h2>Metadata</h2> <pre><code>@author("Nicolas") @debug class MyClass { @range(1, 8) var value:Int; @broken @:noCompletion static function method() { } }</code></pre> <h2>Reification</h2> <pre><code>macro static function add(e:Expr) { return macro $e + $e; }</code></pre>