Advertisement
Vermiculus

the tin chef - an outline

Mar 22nd, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. # loads the CHEF file and parses it into tokens (commands)
  2. def preheat(filepath):
  3.     pass
  4.  
  5. # executes a list of tokens
  6. def cook(tokens):
  7.     # returns a list of verbs loaded from a file (path)
  8.     def loadVerbs(path):
  9.         pass
  10.    
  11.     # returns a list of foods loaded from a file (path)
  12.     def loadFoods(path):
  13.         pass
  14.    
  15.     ###################################################
  16.    
  17.     # iterate through the tokens with complete control over position
  18.     #   (python's for-each loop does not give you any control)
  19.     token_index = 0
  20.     while token_index < len(tokens):
  21.         pass
  22.    
  23.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement