code: def assemble(input_):
      
      global MEMORY
  
      if MEMORY is None:
          MEMORY = Memory()
  
      parser.parse(input_, lexer=LEXER, debug=OPTIONS.Debug.value > 2)
      if len(MEMORY.scopes):
          error(MEMORY.scopes[-1], 'Missing ENDP to close this scope')
  
      return gl.has_errors
docs: Assembles input string, and leave the result in the
      MEMORY global object