Skip to content
Snippets Groups Projects

Dev v1.0

Merged Duc Long Hoang requested to merge dev into main
6 files
+ 116
11
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 21
2
using System;
using Core.FunctionNS;
using Core.MemoryNS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Core.CodeNS
{
public class Code
public static class Code
{
private static XElement? xElement = null;
public static void init(XElement element) { xElement = element; }
public static void createMainFunction()
{
Function main = new Function();
main.Name = "Main";
// TODO
Memory.pushFunction(main);
}
public static XElement? getFunction(String name)
{
if (xElement == null) { return null; }
return xElement.XPathSelectElement("./function[@name='" + name + "']"); }
}
}
Loading