Beispiel #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;
        }
Beispiel #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;
        }