andyb
12/19/2020, 9:17 AMandyb
12/19/2020, 9:19 AMephemient
12/19/2020, 1:16 PMephemient
12/19/2020, 1:17 PMephemient
12/19/2020, 1:18 PMNir
12/19/2020, 4:38 PMNir
12/19/2020, 4:38 PMNir
12/19/2020, 4:38 PMNir
12/19/2020, 4:39 PMNir
12/19/2020, 4:48 PMkartikpatodi
12/19/2020, 5:14 PM8
with 42 +
but then rule 11
recursion had to be limited in some way, which was not neat.
Took inspiration from @andyb 😅Nir
12/19/2020, 5:36 PMNir
12/19/2020, 5:36 PMNir
12/19/2020, 5:36 PMephemient
12/19/2020, 5:40 PMephemient
12/19/2020, 5:41 PMNir
12/19/2020, 5:56 PMNir
12/19/2020, 5:56 PMNir
12/19/2020, 5:56 PMNir
12/19/2020, 5:56 PMandyb
12/19/2020, 6:21 PMephemient
12/19/2020, 6:25 PMsealed class Item {
data class Literal(string: String) : Item()
data class Reference(key: Int) : Item()
}
// typealias Rule = Pair<Int, List<List<Item>>>
so there's only one form of rule, and I can use 0: "a" 1 | 2 "b"
in testingNir
12/19/2020, 7:20 PMNir
12/19/2020, 7:21 PMNir
12/19/2020, 7:22 PMLuke
12/19/2020, 9:22 PMlongestMessageLength
and summed.bjonnh
12/20/2020, 2:58 AMbjonnh
12/20/2020, 2:58 AMbjonnh
12/20/2020, 2:58 AMbjonnh
12/20/2020, 3:13 AM