Skip to content

Instantly share code, notes, and snippets.

View doublethefish's full-sized avatar

Frank Harrison doublethefish

View GitHub Profile
@julik
julik / parser.py
Created November 26, 2013 10:39
Yo dawg, I heard you like Nuke so I wrote this so that you can parse your Nuke TCL while you tickle yo' Python. Ya dig?
TERMINATORS = ["\n", ";"]
ESC = "\\"
QUOTES = ['"', "'"]
class c:
"""
Will be at the start of a list representing an expression
in curly braces. Every c() is equal to any other c()
"""