lab 50 - structural expressions I've been reading again Rob Pike's Structural Regular Expressions paper. It suggest possible variations on existing tools, sort, grep, diff and awk, where applying structural expressions might make the tools more versatile, or change their character entirely.

Inferno is missing awk and though it can be run externally it feels like an important omission. But it does have an implementation of the sam language described in the paper. I've thought about porting awk to inferno, but the paper suggests an alternative, to consider replacing with new tools built around the idea of structural expressions. I've felt that inferno might be missing some important programmable filters, like awk. Awk would be a little complicated to port, but the paper suggests an alternative awk based on structural expressions. So this makes me want to try using them to create a new tool that would satisfy some of the need for awk.

This tool is also potentially a mistake because the same 'sam' language means something different in the new context. Another problem maybe be to settle on this. It would be better to go further and try and build the awk like language.