Exemplo n.º 1
0
        internal RantPattern(string name, RantPatternOrigin type, string code)
        {
            Name = name;
            Type = type;
            Code = code;
			var compiler = new RantCompiler(name, code);
			Action = compiler.Read();
			Module = compiler.HasModule ? compiler.Module : null;
        }
Exemplo n.º 2
0
        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;
        }