internal RantProgram(string name, RantProgramOrigin type, string code) { Name = name; Type = type; Code = code; var compiler = new RantCompiler(name, code); SyntaxTree = compiler.Compile(); }
internal RantPattern(string name, RantPatternOrigin type, string code) { Name = name; Type = type; Code = code; var compiler = new RantCompiler(name, code); Action = compiler.Compile(); Module = compiler.HasModule ? compiler.Module : null; }