presentations/highlight-js/test/markup/ocaml/literals.expect.txt

30 lines
2.2 KiB
Text
Raw Permalink Normal View History

2018-12-07 08:48:05 -06:00
<span class="hljs-keyword">let</span> i = <span class="hljs-number">14</span>
<span class="hljs-keyword">let</span> i = -<span class="hljs-number">14</span>
<span class="hljs-keyword">let</span> i = <span class="hljs-number">1_000</span>
<span class="hljs-keyword">let</span> i = <span class="hljs-number">0b100</span>
<span class="hljs-keyword">let</span> i = <span class="hljs-number">0x1FF</span>
<span class="hljs-keyword">let</span> i = <span class="hljs-number">0o777</span>
<span class="hljs-keyword">let</span> i64 = <span class="hljs-number">128L</span>
<span class="hljs-keyword">let</span> i64 = <span class="hljs-number">0b10L</span>
<span class="hljs-keyword">let</span> i32 = <span class="hljs-number">32l</span>
<span class="hljs-keyword">let</span> i32 = <span class="hljs-number">0x12l</span>
<span class="hljs-keyword">let</span> nat = <span class="hljs-number">10n</span>
<span class="hljs-keyword">let</span> nat = <span class="hljs-number">0o644n</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">5.</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">5.1</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">1e+1</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">1e1</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">1e-1</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">1_024e12</span>
<span class="hljs-keyword">let</span> f = <span class="hljs-number">1L</span>
<span class="hljs-keyword">let</span> b = <span class="hljs-literal">true</span> || <span class="hljs-literal">false</span>
<span class="hljs-keyword">let</span> l = <span class="hljs-literal">[]</span>
<span class="hljs-keyword">let</span> a = <span class="hljs-literal">[||]</span>
<span class="hljs-keyword">let</span> <span class="hljs-literal">()</span> = ignore (b)
<span class="hljs-keyword">let</span> c = <span class="hljs-string">'a'</span>
<span class="hljs-keyword">let</span> c = <span class="hljs-string">'\xFF'</span>
<span class="hljs-keyword">let</span> c = <span class="hljs-string">'\128'</span>
<span class="hljs-keyword">let</span> c = <span class="hljs-string">'\n'</span>