static void Main(string[] args) { using (FileStream stream = new FileStream("../../Test/tree.txt", FileMode.Open, FileAccess.Read)) { using (TreeReader reader = new TreeReader(stream)) { using (TreeParser parser = new TreeParser(reader)) { parser.Parse(); AssemblyDefinition assembly = parser.GenerateAssembly(); string exportPath = "Export"; if (!Directory.Exists(exportPath)) { Directory.CreateDirectory(exportPath); } assembly.Export(exportPath); } } } Console.WriteLine("Finished"); Console.ReadKey(); }
public BaseParser(TreeReader reader) { if (reader == null) { throw new ArgumentNullException(nameof(reader)); } m_reader = reader; }
public TreeParser(TreeReader reader) : base(reader) { m_header = new TreeHeaderParser(reader); m_type = new TypeParser(reader, 0); }
public VarParser(TreeReader reader, bool isHex) : base(reader) { m_isHex = isHex; }
public TypeParser(TreeReader reader, int indent) : base(reader) { m_indent = indent; }
public TreeHeaderParser(TreeReader reader) : base(reader) { }