-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cacf527
commit 0b0303f
Showing
30 changed files
with
338 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
JuliadotNET/obj/Debug/net5.0/JuliadotNET.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
b788ab83789ad9acf7978c9e1c96e986ea9b7be1 | ||
b4696e5d14df4e6ff0d7fc4e121aef589b44613c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
using System; | ||
using JULIAdotNET; | ||
using JULIAdotNET; | ||
using Base; | ||
using runtime.ILCompiler; | ||
using System.Reflection; | ||
using System.Reflection.Emit; | ||
|
||
namespace JuliadotNET.csharp.Statics | ||
{ | ||
namespace JuliadotNET.csharp.Statics { | ||
public class JuliaParser { | ||
|
||
public static void GenerateStaticLibrary(Any module, string libPath) { | ||
var modName = module.ToString(); | ||
var asm = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName(modName), AssemblyBuilderAccess.Run); | ||
GenerateModule(asm.DefineDynamicModule(modName), module); | ||
new Lokad.ILPack.AssemblyGenerator().GenerateAssembly(asm, libPath); | ||
} | ||
|
||
|
||
private static void GenerateModule(ModuleBuilder mb, Any module) { | ||
var modTy = new ILTypeBuilder(mb.DefineType(module.ToString(), TypeAttributes.Class)); | ||
|
||
var names = JPrimitive.NamesF.Invoke(module); | ||
foreach(var name in names) { | ||
Console.WriteLine(name); | ||
foreach(var name in JPrimitive.NamesF.Invoke(module)) { | ||
|
||
} | ||
|
||
modTy.Create(); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.