public void Assemble(string src, string outf) { var ast = Parser.Parse(src); var bcw = new ByteCodeWriter(); AssembleAst(ast, ref bcw); bcw.WriteFile(outf); }
public static void AssembleAst(List <iAst> src, ref ByteCodeWriter bcw) { foreach (var i in src) { foreach (var g in AssemblerIndex) { if (g.IsMe(i)) { g.Assemble(i, ref bcw); break; } } } }
public abstract void Assemble(iAst src, ref ByteCodeWriter bcw);