Aleksey Kladov d0d05075ed internal: replace TreeSink with a data structure
The general theme of this is to make parser a better independent
library.

The specific thing we do here is replacing callback based TreeSink with
a data structure. That is, rather than calling user-provided tree
construction methods, the parser now spits out a very bare-bones tree,
effectively a log of a DFS traversal.

This makes the parser usable without any *specifc* tree sink, and allows
us to, eg, move tests into this crate.

Now, it's also true that this is a distinction without a difference, as
the old and the new interface are equivalent in expressiveness. Still,
this new thing seems somewhat simpler. But yeah, I admit I don't have a
suuper strong motivation here, just a hunch that this is better.
2021-12-25 22:02:26 +03:00
..
2021-12-12 16:54:09 +03:00
2021-12-12 18:31:05 +03:00
2021-09-06 18:54:16 +03:00
2021-12-18 15:31:50 +03:00
2021-10-03 23:39:43 +11:00
2021-12-18 15:31:50 +03:00