在執行它之前是否可以攔截解釋器的代碼? 比方說,我要處理這樣的情況: >>> for f in glob.glob('*.*'): # I'd like to intercept this code before it executes
... something_to_do(f) # and play with it in some dangerous fashion :)
...
E
我目前正試圖直接從我正在處理的Xamarin.iOS代碼編輯器應用程序生成並執行一些C#代碼。我在所有編譯步驟中都使用Roslyn,但不幸的是,Mono不允許您在運行時在iOS上加載程序集。 所以,這段代碼通常會拋出一個Attempting to JIT compile method while running with --aot-only異常。 var tree = CSharpSyntaxT