Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/m/a/main-HEAD/Languages/IronPython/Scripts/run_interactive.py   main(Download)
from Microsoft.Scripting.Hosting.Providers import HostingHelpers
from Microsoft.Scripting.Runtime import CompilerContext
from IronPython import PythonOptions
from IronPython.Hosting import Python
from IronPython.Runtime import PythonContext, ModuleOptions, Symbols
    def CreateASTFromFile(self, fileName):
        completeCode = self.engine.CreateScriptSourceFromFile(fileName)
        sourceUnit = HostingHelpers.GetSourceUnit(completeCode)
        cc = CompilerContext(sourceUnit, PythonCompilerOptions(), ErrorSink.Default)
        parser = Parser.CreateParser(cc, PythonOptions())

src/i/r/ironpython3-HEAD/Src/Scripts/run_interactive.py   ironpython3(Download)
from Microsoft.Scripting.Hosting.Providers import HostingHelpers
from Microsoft.Scripting.Runtime import CompilerContext
from IronPython import PythonOptions
from IronPython.Hosting import Python
from IronPython.Runtime import PythonContext, ModuleOptions, Symbols
    def CreateASTFromFile(self, fileName):
        completeCode = self.engine.CreateScriptSourceFromFile(fileName)
        sourceUnit = HostingHelpers.GetSourceUnit(completeCode)
        cc = CompilerContext(sourceUnit, PythonCompilerOptions(), ErrorSink.Default)
        parser = Parser.CreateParser(cc, PythonOptions())

src/m/a/main-HEAD/Languages/IronPython/Tests/test_syntax.py   main(Download)
    from Microsoft.Scripting.Runtime import CompilerContext
 
    from IronPython import PythonOptions
    from IronPython.Compiler import Parser, Tokenizer, PythonCompilerOptions, Ast
    from System.IO import StringReader
        parser = Parser.CreateParser(
            CompilerContext(sourceUnit, PythonCompilerOptions(), errorSink),
            PythonOptions()
        )
        parser.ParseFile(True)

src/i/r/ironpython3-HEAD/Tests/test_syntax.py   ironpython3(Download)
    from Microsoft.Scripting.Runtime import CompilerContext
 
    from IronPython import PythonOptions
    from IronPython.Compiler import Parser, Tokenizer, PythonCompilerOptions, Ast
    from System.IO import StringReader
        parser = Parser.CreateParser(
            CompilerContext(sourceUnit, PythonCompilerOptions(), errorSink),
            PythonOptions()
        )
        parser.ParseFile(True)