PI and dc(1)

Thursday, 10. 20. 2005  –  Category: vague

echo '99[lslc+vsslp2*ls/splslk+lc>a]sadk_1*sk10lk^sk0ss2dscsplaxlppq' | dc

As an introduction to C programming and unix, my first tech boss asked me to write a dc(1) clone. I really doubt it could have handled this (somewhere there’s a 3.5″ floppy with my code on, no doubt). I went on to write a lexer with awk(1), the less said about that the better…

Leave a Reply