So I started writing some code to read in my arc functions in an attempt to create an auto-format routine that inserts indentation and linebreaks to present my code 'correctly' (this being cause I suck at typing this on my own and find my self wondering how it should even be done). Anyway I started by using w/infile readall.... and noticed in doing so the readall fn was expanding the code ....eg. '(fn stuff) was converted to (qoute (fn stuff)). So I started to parse the code via 'instring' to un-expand the code as a first step. Thought it was worth asking if anyone has taken a stab at this? Is it a case where there are soooo many variances code formatting that it becomes not worth it ? Am I walking down a road that makes little sense.... Thanks.
T. |