Esempio n. 1
0
        internal RantProgram(string name, RantProgramOrigin type, string code)
        {
            Name = name;
            Type = type;
            Code = code;
            var compiler = new RantCompiler(name, code);

            SyntaxTree = compiler.Compile();
        }
Esempio 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;
        }