File: for-04.typ

package info (click to toggle)
haskell-typst 0.5.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,564 kB
  • sloc: haskell: 8,314; xml: 32; makefile: 6
file content (37 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Destructuring without parentheses.
// Error: 7 expected keyword `in`. did you mean to use a destructuring pattern?
#for k, v in (a: 4, b: 5) {
  dont-care
}

// Error: 5 expected identifier
#for

// Error: 5 expected identifier
#for//

// Error: 6 expected identifier
#{for}

// Error: 7 expected keyword `in`
#for v

// Error: 10 expected expression
#for v in

// Error: 15 expected block
#for v in iter

// Error: 5 expected identifier
#for
v in iter {}

// Error: 6 expected identifier
// Error: 10 expected block
A#for "v" thing

// Error: 5 expected identifier
#for "v" in iter {}

// Error: 7 expected keyword `in`
#for a + b in iter {}