Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

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)?


Does this mean something like $tree_object =~ m/regex/ will work and return a sub tree?


Yeah 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: