Debian Codegraph @

examples/prism-nix.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>#
3 # Single line comment
4 /* Multi-line
5 comment */</code></pre>
6
7 <h2>String</h2>
8 <pre><code>""
9 "foo\"bar"
10 "foo
11 bar"
12
13 ''''
14 ''foo'''bar''
15 ''
16 foo
17 bar
18 ''</code></pre>
19
20 <h2>String interpolation</h2>
21 <pre><code>"foo${42}bar"
22 "foo\${42}bar" # This is not interpolated
23 ''foo${42}bar''
24 ''foo''${42}bar'' # This is not interpolated</code></pre>
25
26 <h2>URLs and paths</h2>
27 <pre><code>ftp://ftp.nluug.nl/pub/gnu/hello/hello-2.1.1.tar.gz
28 http://example.org/foo.tar.bz2
29 /bin/sh
30 ./builder.sh
31 ~/foo.bar</code></pre>
32
33 <h2>Integers, booleans and null</h2>
34 <pre><code>0
35 42
36
37 true
38 false
39
40 null</code></pre>
41
42 <h2>Builtin functions</h2>
43 <pre><code>name = baseNameOf (toString url);
44 imap =
45 if builtins ? genList then
46 f: list: genList (n: f (n + 1) (elemAt list n)) (length list)</code></pre>