Skip to content

Instantly share code, notes, and snippets.

@cocuh
Created December 5, 2012 14:09
Show Gist options
  • Save cocuh/4215771 to your computer and use it in GitHub Desktop.
Save cocuh/4215771 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
print((lambda i:"SyntaxError"if i[0]=='/'and i.count('!')-1 else(r if(globals().__setitem__('r',0)or globals().__setitem__('x',i[1:-1][::-1])or len([(lambda:globals().__setitem__('r',r*3+{'/':0,'|':1,'.':2}[x[0]])or globals().__setitem__('x',x[1:]))()for n in range(len(i)-2)]))else 0))((lambda a:''.join(filter(lambda x:x in['/','|','.','!'],a)))((lambda i:i[1]if i[1:]else raw_input('> '))(__import__('sys').argv))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment