Example #1
0
        public string Compile(string address)
        {
            var compileExtracts = Extract(address);

            if (compileExtracts.Count == 0)
            {
                return(address);
            }

            var reg = new Regex(@"\{#(.*?)#\}");

            foreach (var c in compileExtracts)
            {
                var compile = "";
                var code    = FormatCode(c.Function, c.Args);
                compile = JITCompile.GetResult(code);

                address = reg.Replace(address, compile, 1);
            }

            return(address);
        }
Example #2
0
 public static string Compile(string code)
 {
     return(JITCompile.GetResult(code));
 }