4 ms·
Check it out. For five years I have been developing a tool called TXR. It's a "Unixy" data munging language that is ideally suited for programmers who know some
by kazinator 12y ago
Check it out. For five years I have been developing a tool called TXR. It's a "Unixy" data munging language that is ideally suited for programmers who know something about Lisp and would like to move away from reaching for the traditional stand-bys like awk, sed, perl, ...
You do not have to know any Lisp to do basic things in TXR, like extracting data (in fairly complicated ways) and reformatting it, but the power is there to tap into.
In TXR's embedded Lisp dialect, ("TXR Lisp"), you can express yourself in ways that can resemble Common Lisp, Racket or Clojure.
You can see a glimpse of this in this Rosetta Code task, which is solved in three ways that are almost expression-for-expression translations of the CL, Racket and Clojure solutions:
http://rosettacode.org/wiki/Self-referential_sequence#TXR http://rosettacode.org/wiki/Self-referential_sequence#TXR
Or here, with syntax coloring:
http://www.nongnu.org/txr/rosetta-solutions-main.html#Self-referential%20sequence http://www.nongnu.org/txr/rosetta-solutions-main.html#Self-r...
If you closely compare the original solutions, you will see that certain things are done more glibly in TXR Lisp.