These are chat archives for pest-parser/pest

Jun 2018
Christopher Durham
Jun 07 2018 23:02
What's the difference between FlatPairs and Pairs (on master)?
The only difference I can see is <as Iterator>::next
Christopher Durham
Jun 07 2018 23:08
Pairs does self.start = self.pair() + 1, wheras FlatPairs does do { self.start += 1; } while !is_start(self.start);
OK, I think rubberducking got it to me
Given a(b()), Pairs will produce [a(b())] and FlatPairs will produce [a(b()), b()]
OK, the example on Pairs::flattern really shouldn't be going through .tokens()
That makes .flatten() a no-op