Advertisement
Vermiculus

the bronze chef - a better outline

Mar 22nd, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # loads the CHEF file and parses it into tokens
  2. # [<title>,<ingredient_string>,<instructions_string>]
  3. def readRecipe(filepath):
  4.     pass
  5.  
  6. # takes the instruction string from earlier and splits it into statements
  7. def preheat(instructions):
  8.     pass
  9.  
  10. # returns a dictionary of ingredients from a string
  11. # ['apple':96, etc.]
  12. def gather(ingredients):
  13.     pass
  14.  
  15. # Because we all know her handwriting is horrid.
  16. # takes a string and returns a list of command-tuples
  17. # command:  ('ingredient', <mixing_bowl_number>)
  18. # looping:  (' loop ', 'verb')
  19. #  extern:  (' run ', 'recipe')
  20. def callMom(instructions):
  21.     pass
  22.  
  23. # executes a list of commands
  24. def cook(commands):
  25.     # returns a list of verbs loaded from a file (path)
  26.     def loadVerbs(path):
  27.         pass
  28.    
  29.     # returns a list of foods loaded from a file (path)
  30.     def loadFoods(path):
  31.         pass
  32.    
  33.     ###################################################
  34.    
  35.     # iterate through the commands with complete control over position
  36.     #   (python's for-each loop does not give you any control)
  37.     cmd_index = 0
  38.     while cmd_index < len(command):
  39.         cmd_index += 1
  40.         pass
  41.    
  42.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement