Email or username:

Password:

Forgot your password?
Artyom Bologov (t?he(y|m)?)

So... I made a Lisp indentation script. In ed, of course. It manages exceptionally well for an ed script! I ran it on some code, and most of the problems are due to it either being unaware of special forms or restricted by regex replacement features ed provides. I'm surprised 😵

aartaka.me/assets/indent.ed

#theWorkshop

5 comments
Kartik Agaram

@aartaka You have a whole namespace of verbs available to you with that .ed suffix!

Artyom Bologov (t?he(y|m)?)

@akkartik indeed, and I'm using it in the most boring way 😅

Kartik Agaram

@aartaka Why boring! Do what each project needs! No frills, no fluff.

bouncepaw 🍄

@aartaka actually looks pretty nice and readable. Makes you think...

Artyom Bologov (t?he(y|m)?)

@bouncepaw I think this is mostly due to Lisp indentation being dead simple and hard to get wrong. But yeah, the script is readable indeed.

Go Up