Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sounds like a job for structural regex: http://doc.cat-v.org/bell_labs/structural_regexps/se.pdf


Yes, this paper is interesting.

It shows well how a slight shift on the problem expression can lead to a more powerful, simpler to use and general solution. In this case, the shift is to design stream processors (like `sed` and `awk`) to work on streams of text chunks defined by regular expressions rather on streams of lines matching regular expressions.

Regarding this concern, it's hard to say what is the plan of Matz for Streem with a single code example. But the fact, that this sample code processes a stream of integers, lets hope a tool with more flexibility than `sed` or `awk` to specify what is processed along the streams.




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

Search: