-
Notifications
You must be signed in to change notification settings - Fork 0
JITInjector is a C# based JIT Compiler that lets you compile source files at runtime and inject new types into your runtime.
License
peeweek/JITInjector
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JIT INJECTOR 0.0 ================ JIT Injector is a C# JIT Compiler that enables loading of multiple script files, custom parsing and compilation. New types are compiled into an assembly at runtime. This assembly can spawn object based on new compiled types. At runtime, the assembly can be recompiled to match newly created or updated script files. Example : ========= JITInjectorRuntime JITRuntime; // ... in constructor body List<string> v_ReferencedAssemblies = new List<string>(); v_ReferencedAssemblies.Add("System.dll"); v_ReferencedAssemblies.Add("System.Core.dll"); v_ReferencedAssemblies.Add("System.Data.dll"); v_ReferencedAssemblies.Add("System.Data.DataSetExtensions.dll"); v_ReferencedAssemblies.Add("System.Deployment.dll"); v_ReferencedAssemblies.Add("System.Drawing.dll"); v_ReferencedAssemblies.Add("System.Windows.Forms.dll"); v_ReferencedAssemblies.Add("System.Xml.dll"); v_ReferencedAssemblies.Add("System.Xml.Linq.dll"); this.JITRuntime = new JITInjectorRuntime("\\", "*.jitscript", "JITRuntimeTasks", v_ReferencedAssemblies, new JITStartupParserProcessingFileHandler(ProcessScriptFile) ); // in class // Custom Method based on : string ProcessScriptFile(string p_FileName) { string v_out = ""; System.IO.StreamReader myFile = new System.IO.StreamReader(p_FileName); v_out = myFile.ReadToEnd(); myFile.Close(); return v_out; }
About
JITInjector is a C# based JIT Compiler that lets you compile source files at runtime and inject new types into your runtime.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published