Exemplo n.º 1
0
 public PythonCompiler(IList <string> sourceFiles, IList <ResourceFile> resourceFiles, string outputAssembly, CompilerSink compilerSink)
 {
     this.sourceFiles    = sourceFiles;
     this.resourceFiles  = resourceFiles;
     this.outputAssembly = outputAssembly;
     this.compilerSink   = compilerSink;
 }
Exemplo n.º 2
0
 public PythonCompiler(IList<string> sourceFiles, IList<ResourceFile> resourceFiles, string outputAssembly, CompilerSink compilerSink)
 {
     this.sourceFiles = sourceFiles;
     this.resourceFiles = resourceFiles;
     this.outputAssembly = outputAssembly;
     this.compilerSink = compilerSink;
     this.state = new SystemState();
 }
Exemplo n.º 3
0
        public static Module Analyze(Modules modules, CompilerSink sink, string name, string text)
        {
            CompilerContext context = new CompilerContext(name, sink);
            Parser parser = Parser.FromString(state, context, text);
            Statement Statement = parser.ParseFileInput();

            Analyzer analyzer = new Analyzer();
            return analyzer.DoAnalyze(modules, name, Statement);
        }
 public Module AnalyzeModule(CompilerSink sink, string name, string text)
 {
     Module module = Analyzer.Analyze(this, sink, name, text);
     return module;
 }
Exemplo n.º 5
0
 public PythonCompiler(IList<string> sourceFiles, string outputAssembly, CompilerSink compilerSink)
     : this(sourceFiles, null, outputAssembly, compilerSink)
 {
 }
Exemplo n.º 6
0
 public PythonCompilerSink(CompilerSink sink)
 {
     this.sink = sink;
 }
Exemplo n.º 7
0
 public PythonCompilerSink(CompilerSink sink)
 {
     this.sink = sink;
 }
Exemplo n.º 8
0
 public PythonCompiler(IList <string> sourceFiles, string outputAssembly, CompilerSink compilerSink)
     : this(sourceFiles, null, outputAssembly, compilerSink)
 {
 }
 public CompilerContext(string sourceFile, CompilerSink sink)
 {
     this.sourceFile = sourceFile;
     this.sink = sink;
 }