code: def parse(source):
      
      if isinstance(source, str):
          return parse_stream(six.StringIO(source))
      else:
          return parse_stream(source)
docs: Parses source code returns an array of instructions suitable for
      optimization and execution by a Machine.
  
      Args:
          source: A string or stream containing source code.