Skip to content

Instantly share code, notes, and snippets.

View TimotheeL's full-sized avatar

Timothee Laurent TimotheeL

  • Dublin, Ireland
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@TimotheeL
TimotheeL / beautifyPrologLists.py
Created May 9, 2019 22:33
A simple Python script to beautify and indent Prolog lists
import sys
# Script developped by Timothée Laurent
# Usage: beautifyPrologLists.py [inputFile [outputFile [depth]]]
# Where depth is the depth at which you wish to stop indenting
# Example with depth = 2:
# [
# [
# [a, b, c, d],
# [1, [a, b], [c, d]],