Skip to content

Commit b16885f

Browse files
committed
Add slice operator
1 parent 9b7ab10 commit b16885f

22 files changed

+501
-177
lines changed

ast/location.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ func (n *IndexNode) GetLocation() file.Location {
9292
return n.l
9393
}
9494

95+
func (n *SliceNode) SetLocation(l file.Location) {
96+
n.l = l
97+
}
98+
99+
func (n *SliceNode) GetLocation() file.Location {
100+
return n.l
101+
}
102+
95103
func (n *MethodNode) SetLocation(l file.Location) {
96104
n.l = l
97105
}

ast/node.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ type IndexNode struct {
9696
Index Node
9797
}
9898

99+
type SliceNode struct {
100+
l file.Location
101+
t reflect.Type
102+
103+
Node Node
104+
From Node
105+
To Node
106+
}
107+
99108
type MethodNode struct {
100109
l file.Location
101110
t reflect.Type

ast/type.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ func (n *IndexNode) GetType() reflect.Type {
9090
return n.t
9191
}
9292

93+
func (n *SliceNode) SetType(t reflect.Type) {
94+
n.t = t
95+
}
96+
97+
func (n *SliceNode) GetType() reflect.Type {
98+
return n.t
99+
}
100+
93101
func (n *MethodNode) SetType(t reflect.Type) {
94102
n.t = t
95103
}

ast/visitor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ func (w *walker) walk(node *Node) {
5252
w.walk(&n.Node)
5353
w.walk(&n.Index)
5454
w.visitor.Exit(node)
55+
case *SliceNode:
56+
w.walk(&n.From)
57+
w.walk(&n.To)
58+
w.visitor.Exit(node)
5559
case *MethodNode:
5660
w.walk(&n.Node)
5761
for _, arg := range n.Arguments {

checker/checker.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func (v *visitor) visit(node ast.Node) reflect.Type {
8181
t = v.PropertyNode(n)
8282
case *ast.IndexNode:
8383
t = v.IndexNode(n)
84+
case *ast.SliceNode:
85+
t = v.SliceNode(n)
8486
case *ast.MethodNode:
8587
t = v.MethodNode(n)
8688
case *ast.FunctionNode:
@@ -290,6 +292,28 @@ func (v *visitor) IndexNode(node *ast.IndexNode) reflect.Type {
290292
panic(v.error(node, "invalid operation: type %v does not support indexing", t))
291293
}
292294

295+
func (v *visitor) SliceNode(node *ast.SliceNode) reflect.Type {
296+
t := v.visit(node.Node)
297+
298+
if _, ok := indexType(t); ok {
299+
if node.From != nil {
300+
from := v.visit(node.From)
301+
if !isInteger(from) {
302+
panic(v.error(node.From, "invalid operation: non-integer slice index %v", from))
303+
}
304+
}
305+
if node.To != nil {
306+
to := v.visit(node.To)
307+
if !isInteger(to) {
308+
panic(v.error(node.To, "invalid operation: non-integer slice index %v", to))
309+
}
310+
}
311+
return t
312+
}
313+
314+
panic(v.error(node, "invalid operation: cannot slice %v", t))
315+
}
316+
293317
func (v *visitor) FunctionNode(node *ast.FunctionNode) reflect.Type {
294318
if f, ok := v.types[node.Name]; ok {
295319
if fn, ok := funcType(f.Type); ok {

compiler/compiler.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func (c *compiler) compile(node ast.Node) {
136136
c.PropertyNode(n)
137137
case *ast.IndexNode:
138138
c.IndexNode(n)
139+
case *ast.SliceNode:
140+
c.SliceNode(n)
139141
case *ast.MethodNode:
140142
c.MethodNode(n)
141143
case *ast.FunctionNode:
@@ -403,6 +405,21 @@ func (c *compiler) IndexNode(node *ast.IndexNode) {
403405
c.emit(OpIndex)
404406
}
405407

408+
func (c *compiler) SliceNode(node *ast.SliceNode) {
409+
c.compile(node.Node)
410+
if node.To != nil {
411+
c.compile(node.To)
412+
} else {
413+
c.emit(OpLen)
414+
}
415+
if node.From != nil {
416+
c.compile(node.From)
417+
} else {
418+
c.emitPush(0)
419+
}
420+
c.emit(OpSlice)
421+
}
422+
406423
func (c *compiler) MethodNode(node *ast.MethodNode) {
407424
c.compile(node.Node)
408425
for _, arg := range node.Arguments {

docs/Language-Definition.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ The range is inclusive:
140140

141141
* `foo ? 'yes' : 'no'`
142142

143+
Example:
144+
145+
```coffeescript
146+
user.Age > 30 ? "mature" : "immature"
147+
```
148+
143149
## Builtin functions
144150

145151
* `len` (length of array or string)
@@ -172,3 +178,19 @@ If the item of array is struct, it's possible to access fields of struct with om
172178
```go
173179
filter(Tweets, {.Size > 140})
174180
```
181+
182+
## Slices
183+
184+
* `array[:]` (slice)
185+
186+
Slices can work with arrays or strings.
187+
188+
Example:
189+
190+
```go
191+
// array is [1,2,3,4,5]
192+
array[1:5] == [2,3,4]
193+
array[3:] == [4,5]
194+
array[:4] == [1,2,3]
195+
array[:] == array
196+
```

expr_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,26 @@ func TestExpr(t *testing.T) {
330330
`IntArray[0] + IntArray[1]`,
331331
3,
332332
},
333+
{
334+
`IntArray[1:2]`,
335+
[]int{2},
336+
},
337+
{
338+
`IntArray[0:3] == IntArray`,
339+
true,
340+
},
341+
{
342+
`IntArray[0:] == IntArray`,
343+
true,
344+
},
345+
{
346+
`IntArray[:3] == IntArray`,
347+
true,
348+
},
349+
{
350+
`IntArray[:] == IntArray`,
351+
true,
352+
},
333353
}
334354

335355
for _, tt := range tests {

parser/Expr.g4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ start
77
expr
88
: '.' name=Identifier # ClosureMemberDot
99
| expr '[' index=expr ']' # MemberIndex
10+
| expr '[' a=expr? ':' b=expr? ']' # Slice
1011
| expr '.' name=Identifier # MemberDot
1112
| builtins # BuiltinsList
1213
| expr '(' args=arguments? ')' # Call

parser/gen/expr.interp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@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, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 7, 6, 165, 10, 6, 12, 6, 14, 6, 168, 11, 6, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 176, 10, 7, 12, 7, 14, 7, 179, 11, 7, 3, 7, 5, 7, 182, 10, 7, 3, 7, 3, 7, 5, 7, 186, 10, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 193, 10, 8, 3, 8, 3, 8, 5, 8, 197, 10, 8, 3, 9, 3, 9, 3, 9, 7, 9, 202, 10, 9, 12, 9, 14, 9, 205, 11, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 2, 3, 4, 12, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 2, 9, 3, 2, 29, 32, 3, 2, 34, 37, 3, 2, 29, 30, 3, 2, 40, 43, 3, 2, 8, 9, 3, 2, 44, 45, 3, 2, 55, 56, 2, 245, 2, 22, 3, 2, 2, 2, 4, 45, 3, 2, 2, 2, 6, 155, 3, 2, 2, 2, 8, 157, 3, 2, 2, 2, 10, 161, 3, 2, 2, 2, 12, 185, 3, 2, 2, 2, 14, 196, 3, 2, 2, 2, 16, 198, 3, 2, 2, 2, 18, 206, 3, 2, 2, 2, 20, 210, 3, 2, 2, 2, 22, 23, 5, 4, 3, 2, 23, 24, 7, 2, 2, 3, 24, 3, 3, 2, 2, 2, 25, 26, 8, 3, 1, 2, 26, 27, 7, 28, 2, 2, 27, 46, 7, 55, 2, 2, 28, 46, 5, 6, 4, 2, 29, 30, 9, 2, 2, 2, 30, 46, 5, 4, 3, 27, 31, 46, 7, 33, 2, 2, 32, 46, 7, 51, 2, 2, 33, 46, 7, 56, 2, 2, 34, 46, 7, 52, 2, 2, 35, 46, 7, 54, 2, 2, 36, 46, 7, 53, 2, 2, 37, 46, 7, 55, 2, 2, 38, 46, 7, 46, 2, 2, 39, 46, 5, 12, 7, 2, 40, 46, 5, 14, 8, 2, 41, 42, 7, 19, 2, 2, 42, 43, 5, 4, 3, 2, 43, 44, 7, 20, 2, 2, 44, 46, 3, 2, 2, 2, 45, 25, 3, 2, 2, 2, 45, 28, 3, 2, 2, 2, 45, 29, 3, 2, 2, 2, 45, 31, 3, 2, 2, 2, 45, 32, 3, 2, 2, 2, 45, 33, 3, 2, 2, 2, 45, 34, 3, 2, 2, 2, 45, 35, 3, 2, 2, 2, 45, 36, 3, 2, 2, 2, 45, 37, 3, 2, 2, 2, 45, 38, 3, 2, 2, 2, 45, 39, 3, 2, 2, 2, 45, 40, 3, 2, 2, 2, 45, 41, 3, 2, 2, 2, 46, 105, 3, 2, 2, 2, 47, 48, 12, 26, 2, 2, 48, 49, 7, 3, 2, 2, 49, 104, 5, 4, 3, 27, 50, 51, 12, 25, 2, 2, 51, 52, 9, 3, 2, 2, 52, 104, 5, 4, 3, 26, 53, 54, 12, 24, 2, 2, 54, 55, 9, 4, 2, 2, 55, 104, 5, 4, 3, 25, 56, 57, 12, 23, 2, 2, 57, 58, 9, 5, 2, 2, 58, 104, 5, 4, 3, 24, 59, 60, 12, 22, 2, 2, 60, 61, 7, 4, 2, 2, 61, 104, 5, 4, 3, 23, 62, 63, 12, 21, 2, 2, 63, 64, 7, 5, 2, 2, 64, 104, 5, 4, 3, 22, 65, 66, 12, 20, 2, 2, 66, 67, 7, 6, 2, 2, 67, 104, 5, 4, 3, 21, 68, 69, 12, 19, 2, 2, 69, 70, 7, 7, 2, 2, 70, 104, 5, 4, 3, 20, 71, 72, 12, 18, 2, 2, 72, 73, 9, 6, 2, 2, 73, 104, 5, 4, 3, 19, 74, 75, 12, 17, 2, 2, 75, 76, 9, 7, 2, 2, 76, 104, 5, 4, 3, 18, 77, 78, 12, 16, 2, 2, 78, 79, 7, 47, 2, 2, 79, 104, 5, 4, 3, 17, 80, 81, 12, 15, 2, 2, 81, 82, 7, 48, 2, 2, 82, 104, 5, 4, 3, 16, 83, 84, 12, 14, 2, 2, 84, 85, 7, 26, 2, 2, 85, 86, 5, 4, 3, 2, 86, 87, 7, 27, 2, 2, 87, 88, 5, 4, 3, 15, 88, 104, 3, 2, 2, 2, 89, 90, 12, 31, 2, 2, 90, 91, 7, 17, 2, 2, 91, 92, 5, 4, 3, 2, 92, 93, 7, 18, 2, 2, 93, 104, 3, 2, 2, 2, 94, 95, 12, 30, 2, 2, 95, 96, 7, 28, 2, 2, 96, 104, 7, 55, 2, 2, 97, 98, 12, 28, 2, 2, 98, 100, 7, 19, 2, 2, 99, 101, 5, 10, 6, 2, 100, 99, 3, 2, 2, 2, 100, 101, 3, 2, 2, 2, 101, 102, 3, 2, 2, 2, 102, 104, 7, 20, 2, 2, 103, 47, 3, 2, 2, 2, 103, 50, 3, 2, 2, 2, 103, 53, 3, 2, 2, 2, 103, 56, 3, 2, 2, 2, 103, 59, 3, 2, 2, 2, 103, 62, 3, 2, 2, 2, 103, 65, 3, 2, 2, 2, 103, 68, 3, 2, 2, 2, 103, 71, 3, 2, 2, 2, 103, 74, 3, 2, 2, 2, 103, 77, 3, 2, 2, 2, 103, 80, 3, 2, 2, 2, 103, 83, 3, 2, 2, 2, 103, 89, 3, 2, 2, 2, 103, 94, 3, 2, 2, 2, 103, 97, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 105, 106, 3, 2, 2, 2, 106, 5, 3, 2, 2, 2, 107, 105, 3, 2, 2, 2, 108, 109, 7, 10, 2, 2, 109, 110, 7, 19, 2, 2, 110, 111, 5, 4, 3, 2, 111, 112, 7, 20, 2, 2, 112, 156, 3, 2, 2, 2, 113, 114, 7, 11, 2, 2, 114, 115, 7, 19, 2, 2, 115, 116, 5, 4, 3, 2, 116, 117, 7, 24, 2, 2, 117, 118, 5, 8, 5, 2, 118, 119, 7, 20, 2, 2, 119, 156, 3, 2, 2, 2, 120, 121, 7, 12, 2, 2, 121, 122, 7, 19, 2, 2, 122, 123, 5, 4, 3, 2, 123, 124, 7, 24, 2, 2, 124, 125, 5, 8, 5, 2, 125, 126, 7, 20, 2, 2, 126, 156, 3, 2, 2, 2, 127, 128, 7, 13, 2, 2, 128, 129, 7, 19, 2, 2, 129, 130, 5, 4, 3, 2, 130, 131, 7, 24, 2, 2, 131, 132, 5, 8, 5, 2, 132, 133, 7, 20, 2, 2, 133, 156, 3, 2, 2, 2, 134, 135, 7, 14, 2, 2, 135, 136, 7, 19, 2, 2, 136, 137, 5, 4, 3, 2, 137, 138, 7, 24, 2, 2, 138, 139, 5, 8, 5, 2, 139, 140, 7, 20, 2, 2, 140, 156, 3, 2, 2, 2, 141, 142, 7, 15, 2, 2, 142, 143, 7, 19, 2, 2, 143, 144, 5, 4, 3, 2, 144, 145, 7, 24, 2, 2, 145, 146, 5, 8, 5, 2, 146, 147, 7, 20, 2, 2, 147, 156, 3, 2, 2, 2, 148, 149, 7, 16, 2, 2, 149, 150, 7, 19, 2, 2, 150, 151, 5, 4, 3, 2, 151, 152, 7, 24, 2, 2, 152, 153, 5, 8, 5, 2, 153, 154, 7, 20, 2, 2, 154, 156, 3, 2, 2, 2, 155, 108, 3, 2, 2, 2, 155, 113, 3, 2, 2, 2, 155, 120, 3, 2, 2, 2, 155, 127, 3, 2, 2, 2, 155, 134, 3, 2, 2, 2, 155, 141, 3, 2, 2, 2, 155, 148, 3, 2, 2, 2, 156, 7, 3, 2, 2, 2, 157, 158, 7, 21, 2, 2, 158, 159, 5, 4, 3, 2, 159, 160, 7, 22, 2, 2, 160, 9, 3, 2, 2, 2, 161, 166, 5, 4, 3, 2, 162, 163, 7, 24, 2, 2, 163, 165, 5, 4, 3, 2, 164, 162, 3, 2, 2, 2, 165, 168, 3, 2, 2, 2, 166, 164, 3, 2, 2, 2, 166, 167, 3, 2, 2, 2, 167, 11, 3, 2, 2, 2, 168, 166, 3, 2, 2, 2, 169, 170, 7, 17, 2, 2, 170, 186, 7, 18, 2, 2, 171, 172, 7, 17, 2, 2, 172, 177, 5, 4, 3, 2, 173, 174, 7, 24, 2, 2, 174, 176, 5, 4, 3, 2, 175, 173, 3, 2, 2, 2, 176, 179, 3, 2, 2, 2, 177, 175, 3, 2, 2, 2, 177, 178, 3, 2, 2, 2, 178, 181, 3, 2, 2, 2, 179, 177, 3, 2, 2, 2, 180, 182, 7, 24, 2, 2, 181, 180, 3, 2, 2, 2, 181, 182, 3, 2, 2, 2, 182, 183, 3, 2, 2, 2, 183, 184, 7, 18, 2, 2, 184, 186, 3, 2, 2, 2, 185, 169, 3, 2, 2, 2, 185, 171, 3, 2, 2, 2, 186, 13, 3, 2, 2, 2, 187, 188, 7, 21, 2, 2, 188, 197, 7, 22, 2, 2, 189, 190, 7, 21, 2, 2, 190, 192, 5, 16, 9, 2, 191, 193, 7, 24, 2, 2, 192, 191, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 194, 3, 2, 2, 2, 194, 195, 7, 22, 2, 2, 195, 197, 3, 2, 2, 2, 196, 187, 3, 2, 2, 2, 196, 189, 3, 2, 2, 2, 197, 15, 3, 2, 2, 2, 198, 203, 5, 18, 10, 2, 199, 200, 7, 24, 2, 2, 200, 202, 5, 18, 10, 2, 201, 199, 3, 2, 2, 2, 202, 205, 3, 2, 2, 2, 203, 201, 3, 2, 2, 2, 203, 204, 3, 2, 2, 2, 204, 17, 3, 2, 2, 2, 205, 203, 3, 2, 2, 2, 206, 207, 5, 20, 11, 2, 207, 208, 7, 27, 2, 2, 208, 209, 5, 4, 3, 2, 209, 19, 3, 2, 2, 2, 210, 211, 9, 8, 2, 2, 211, 21, 3, 2, 2, 2, 14, 45, 100, 103, 105, 155, 166, 177, 181, 185, 192, 196, 203]
139+
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 61, 223, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 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, 7, 3, 7, 3, 7, 5, 7, 196, 10, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 203, 10, 8, 3, 8, 3, 8, 5, 8, 207, 10, 8, 3, 9, 3, 9, 3, 9, 7, 9, 212, 10, 9, 12, 9, 14, 9, 215, 11, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 2, 3, 4, 12, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 2, 9, 3, 2, 29, 32, 3, 2, 34, 37, 3, 2, 29, 30, 3, 2, 40, 43, 3, 2, 8, 9, 3, 2, 44, 45, 3, 2, 55, 56, 2, 258, 2, 22, 3, 2, 2, 2, 4, 45, 3, 2, 2, 2, 6, 165, 3, 2, 2, 2, 8, 167, 3, 2, 2, 2, 10, 171, 3, 2, 2, 2, 12, 195, 3, 2, 2, 2, 14, 206, 3, 2, 2, 2, 16, 208, 3, 2, 2, 2, 18, 216, 3, 2, 2, 2, 20, 220, 3, 2, 2, 2, 22, 23, 5, 4, 3, 2, 23, 24, 7, 2, 2, 3, 24, 3, 3, 2, 2, 2, 25, 26, 8, 3, 1, 2, 26, 27, 7, 28, 2, 2, 27, 46, 7, 55, 2, 2, 28, 46, 5, 6, 4, 2, 29, 30, 9, 2, 2, 2, 30, 46, 5, 4, 3, 27, 31, 46, 7, 33, 2, 2, 32, 46, 7, 51, 2, 2, 33, 46, 7, 56, 2, 2, 34, 46, 7, 52, 2, 2, 35, 46, 7, 54, 2, 2, 36, 46, 7, 53, 2, 2, 37, 46, 7, 55, 2, 2, 38, 46, 7, 46, 2, 2, 39, 46, 5, 12, 7, 2, 40, 46, 5, 14, 8, 2, 41, 42, 7, 19, 2, 2, 42, 43, 5, 4, 3, 2, 43, 44, 7, 20, 2, 2, 44, 46, 3, 2, 2, 2, 45, 25, 3, 2, 2, 2, 45, 28, 3, 2, 2, 2, 45, 29, 3, 2, 2, 2, 45, 31, 3, 2, 2, 2, 45, 32, 3, 2, 2, 2, 45, 33, 3, 2, 2, 2, 45, 34, 3, 2, 2, 2, 45, 35, 3, 2, 2, 2, 45, 36, 3, 2, 2, 2, 45, 37, 3, 2, 2, 2, 45, 38, 3, 2, 2, 2, 45, 39, 3, 2, 2, 2, 45, 40, 3, 2, 2, 2, 45, 41, 3, 2, 2, 2, 46, 115, 3, 2, 2, 2, 47, 48, 12, 26, 2, 2, 48, 49, 7, 3, 2, 2, 49, 114, 5, 4, 3, 27, 50, 51, 12, 25, 2, 2, 51, 52, 9, 3, 2, 2, 52, 114, 5, 4, 3, 26, 53, 54, 12, 24, 2, 2, 54, 55, 9, 4, 2, 2, 55, 114, 5, 4, 3, 25, 56, 57, 12, 23, 2, 2, 57, 58, 9, 5, 2, 2, 58, 114, 5, 4, 3, 24, 59, 60, 12, 22, 2, 2, 60, 61, 7, 4, 2, 2, 61, 114, 5, 4, 3, 23, 62, 63, 12, 21, 2, 2, 63, 64, 7, 5, 2, 2, 64, 114, 5, 4, 3, 22, 65, 66, 12, 20, 2, 2, 66, 67, 7, 6, 2, 2, 67, 114, 5, 4, 3, 21, 68, 69, 12, 19, 2, 2, 69, 70, 7, 7, 2, 2, 70, 114, 5, 4, 3, 20, 71, 72, 12, 18, 2, 2, 72, 73, 9, 6, 2, 2, 73, 114, 5, 4, 3, 19, 74, 75, 12, 17, 2, 2, 75, 76, 9, 7, 2, 2, 76, 114, 5, 4, 3, 18, 77, 78, 12, 16, 2, 2, 78, 79, 7, 47, 2, 2, 79, 114, 5, 4, 3, 17, 80, 81, 12, 15, 2, 2, 81, 82, 7, 48, 2, 2, 82, 114, 5, 4, 3, 16, 83, 84, 12, 14, 2, 2, 84, 85, 7, 26, 2, 2, 85, 86, 5, 4, 3, 2, 86, 87, 7, 27, 2, 2, 87, 88, 5, 4, 3, 15, 88, 114, 3, 2, 2, 2, 89, 90, 12, 32, 2, 2, 90, 91, 7, 17, 2, 2, 91, 92, 5, 4, 3, 2, 92, 93, 7, 18, 2, 2, 93, 114, 3, 2, 2, 2, 94, 95, 12, 31, 2, 2, 95, 97, 7, 17, 2, 2, 96, 98, 5, 4, 3, 2, 97, 96, 3, 2, 2, 2, 97, 98, 3, 2, 2, 2, 98, 99, 3, 2, 2, 2, 99, 101, 7, 27, 2, 2, 100, 102, 5, 4, 3, 2, 101, 100, 3, 2, 2, 2, 101, 102, 3, 2, 2, 2, 102, 103, 3, 2, 2, 2, 103, 114, 7, 18, 2, 2, 104, 105, 12, 30, 2, 2, 105, 106, 7, 28, 2, 2, 106, 114, 7, 55, 2, 2, 107, 108, 12, 28, 2, 2, 108, 110, 7, 19, 2, 2, 109, 111, 5, 10, 6, 2, 110, 109, 3, 2, 2, 2, 110, 111, 3, 2, 2, 2, 111, 112, 3, 2, 2, 2, 112, 114, 7, 20, 2, 2, 113, 47, 3, 2, 2, 2, 113, 50, 3, 2, 2, 2, 113, 53, 3, 2, 2, 2, 113, 56, 3, 2, 2, 2, 113, 59, 3, 2, 2, 2, 113, 62, 3, 2, 2, 2, 113, 65, 3, 2, 2, 2, 113, 68, 3, 2, 2, 2, 113, 71, 3, 2, 2, 2, 113, 74, 3, 2, 2, 2, 113, 77, 3, 2, 2, 2, 113, 80, 3, 2, 2, 2, 113, 83, 3, 2, 2, 2, 113, 89, 3, 2, 2, 2, 113, 94, 3, 2, 2, 2, 113, 104, 3, 2, 2, 2, 113, 107, 3, 2, 2, 2, 114, 117, 3, 2, 2, 2, 115, 113, 3, 2, 2, 2, 115, 116, 3, 2, 2, 2, 116, 5, 3, 2, 2, 2, 117, 115, 3, 2, 2, 2, 118, 119, 7, 10, 2, 2, 119, 120, 7, 19, 2, 2, 120, 121, 5, 4, 3, 2, 121, 122, 7, 20, 2, 2, 122, 166, 3, 2, 2, 2, 123, 124, 7, 11, 2, 2, 124, 125, 7, 19, 2, 2, 125, 126, 5, 4, 3, 2, 126, 127, 7, 24, 2, 2, 127, 128, 5, 8, 5, 2, 128, 129, 7, 20, 2, 2, 129, 166, 3, 2, 2, 2, 130, 131, 7, 12, 2, 2, 131, 132, 7, 19, 2, 2, 132, 133, 5, 4, 3, 2, 133, 134, 7, 24, 2, 2, 134, 135, 5, 8, 5, 2, 135, 136, 7, 20, 2, 2, 136, 166, 3, 2, 2, 2, 137, 138, 7, 13, 2, 2, 138, 139, 7, 19, 2, 2, 139, 140, 5, 4, 3, 2, 140, 141, 7, 24, 2, 2, 141, 142, 5, 8, 5, 2, 142, 143, 7, 20, 2, 2, 143, 166, 3, 2, 2, 2, 144, 145, 7, 14, 2, 2, 145, 146, 7, 19, 2, 2, 146, 147, 5, 4, 3, 2, 147, 148, 7, 24, 2, 2, 148, 149, 5, 8, 5, 2, 149, 150, 7, 20, 2, 2, 150, 166, 3, 2, 2, 2, 151, 152, 7, 15, 2, 2, 152, 153, 7, 19, 2, 2, 153, 154, 5, 4, 3, 2, 154, 155, 7, 24, 2, 2, 155, 156, 5, 8, 5, 2, 156, 157, 7, 20, 2, 2, 157, 166, 3, 2, 2, 2, 158, 159, 7, 16, 2, 2, 159, 160, 7, 19, 2, 2, 160, 161, 5, 4, 3, 2, 161, 162, 7, 24, 2, 2, 162, 163, 5, 8, 5, 2, 163, 164, 7, 20, 2, 2, 164, 166, 3, 2, 2, 2, 165, 118, 3, 2, 2, 2, 165, 123, 3, 2, 2, 2, 165, 130, 3, 2, 2, 2, 165, 137, 3, 2, 2, 2, 165, 144, 3, 2, 2, 2, 165, 151, 3, 2, 2, 2, 165, 158, 3, 2, 2, 2, 166, 7, 3, 2, 2, 2, 167, 168, 7, 21, 2, 2, 168, 169, 5, 4, 3, 2, 169, 170, 7, 22, 2, 2, 170, 9, 3, 2, 2, 2, 171, 176, 5, 4, 3, 2, 172, 173, 7, 24, 2, 2, 173, 175, 5, 4, 3, 2, 174, 172, 3, 2, 2, 2, 175, 178, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 176, 177, 3, 2, 2, 2, 177, 11, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 179, 180, 7, 17, 2, 2, 180, 196, 7, 18, 2, 2, 181, 182, 7, 17, 2, 2, 182, 187, 5, 4, 3, 2, 183, 184, 7, 24, 2, 2, 184, 186, 5, 4, 3, 2, 185, 183, 3, 2, 2, 2, 186, 189, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 187, 188, 3, 2, 2, 2, 188, 191, 3, 2, 2, 2, 189, 187, 3, 2, 2, 2, 190, 192, 7, 24, 2, 2, 191, 190, 3, 2, 2, 2, 191, 192, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 194, 7, 18, 2, 2, 194, 196, 3, 2, 2, 2, 195, 179, 3, 2, 2, 2, 195, 181, 3, 2, 2, 2, 196, 13, 3, 2, 2, 2, 197, 198, 7, 21, 2, 2, 198, 207, 7, 22, 2, 2, 199, 200, 7, 21, 2, 2, 200, 202, 5, 16, 9, 2, 201, 203, 7, 24, 2, 2, 202, 201, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 204, 3, 2, 2, 2, 204, 205, 7, 22, 2, 2, 205, 207, 3, 2, 2, 2, 206, 197, 3, 2, 2, 2, 206, 199, 3, 2, 2, 2, 207, 15, 3, 2, 2, 2, 208, 213, 5, 18, 10, 2, 209, 210, 7, 24, 2, 2, 210, 212, 5, 18, 10, 2, 211, 209, 3, 2, 2, 2, 212, 215, 3, 2, 2, 2, 213, 211, 3, 2, 2, 2, 213, 214, 3, 2, 2, 2, 214, 17, 3, 2, 2, 2, 215, 213, 3, 2, 2, 2, 216, 217, 5, 20, 11, 2, 217, 218, 7, 27, 2, 2, 218, 219, 5, 4, 3, 2, 219, 19, 3, 2, 2, 2, 220, 221, 9, 8, 2, 2, 221, 21, 3, 2, 2, 2, 16, 45, 97, 101, 110, 113, 115, 165, 176, 187, 191, 195, 202, 206, 213]

0 commit comments

Comments
 (0)