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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
source: crates/aiken-lang/src/parser/expr/int.rs
description: "Code:\n\n{\n let i = 1_234_567\n let j = 1_000_000\n let k = -10_000\n}\n"
---
Sequence {
location: 4..59,
expressions: [
Assignment {
location: 4..21,
value: UInt {
location: 12..21,
value: "1234567",
base: Decimal {
numeric_underscore: true,
},
},
patterns: [
AssignmentPattern {
pattern: Var {
location: 8..9,
name: "i",
},
annotation: None,
location: 8..9,
},
],
kind: Let {
backpassing: false,
},
comment: None,
},
Assignment {
location: 24..41,
value: UInt {
location: 32..41,
value: "1000000",
base: Decimal {
numeric_underscore: true,
},
},
patterns: [
AssignmentPattern {
pattern: Var {
location: 28..29,
name: "j",
},
annotation: None,
location: 28..29,
},
],
kind: Let {
backpassing: false,
},
comment: None,
},
Assignment {
location: 44..59,
value: UnOp {
op: Negate,
location: 52..59,
value: UInt {
location: 53..59,
value: "10000",
base: Decimal {
numeric_underscore: true,
},
},
},
patterns: [
AssignmentPattern {
pattern: Var {
location: 48..49,
name: "k",
},
annotation: None,
location: 48..49,
},
],
kind: Let {
backpassing: false,
},
comment: None,
},
],
}