Skip to content

Instantly share code, notes, and snippets.

@4toblerone
Created February 20, 2013 17:06
Show Gist options
  • Save 4toblerone/4997134 to your computer and use it in GitHub Desktop.
Save 4toblerone/4997134 to your computer and use it in GitHub Desktop.
def composeASTWithList(self,util):
tokenPosition = 0
if tokenPosition == len(self.listOfTokens)-1 :
return None
else:
util.append(self.listOfTokens[tokenPosition+1])
util.append(self.listOfTokens[tokenPosition])
util.append([])
self.composeASTWithList(util[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment