3 ms·
Can we also prove that awk is Turing complete this way?
by rollypolly 14y ago
Can we also prove that awk is Turing complete this way?
- pkrumins 14y agoThat's not the point. Many people are surprised when they hear that sed is Turing complete. How come a text filtering program is Turing complete they ask? Turns out sed is like a small assembly language that has a comparison operation, a branching operation and a temporary buffer. If you translate a problem into a textual representation then these operations are enough to make sed Turing complete!
- mturmon 14y agoawk has while loops, conditionals, variables, and associative arrays. It's Turing-complete.