4 ms·
how about we also get regex-parsable streams (IO::Async in perl has something like it, suboptimal perhaps) and regex-parsable treestructures (totally possible)?
by larodi 2y ago
how about we also get regex-parsable streams (IO::Async in perl has something like it, suboptimal perhaps) and regex-parsable treestructures (totally possible)? seems like just having the ~= work on structures (or whatever the API is called in other languages, this being Perl5)?
- melagonster 1y agoDoes this mean something like $tree_object =~ m/regex/ will work and return a sub tree?
- larodi 1y agoYeah and if you think about it is totally doable. The FSM or whatever automata is just picks and exhausts branches that provide the correct value. Definitely can be done to streaming data… protobufs in a way is this, given it’s a sort of BNF from a bird’s eye.