Exemple #1
0
        public string Dump(string tab)
        {
            StringBuilder dump = new StringBuilder();

            dump.AppendLine($"{tab}(SEQUENCE [");
            Statements.ForEach(c => dump.AppendLine($"{c.Dump(tab + "\t")},"));
            dump.AppendLine($"{tab}] )");
            return(dump.ToString());
        }
Exemple #2
0
        public void Assign(List <object> parameters)
        {
            Statements.ForEach(x =>
            {
                if (x.Assign)
                {
                    x.Exec();
                }
            });

            var constructor = Functions.Find(x => x.Identifier == Identifier);

            if (constructor != null)
            {
                Lib.AccessNewFunction(constructor, parameters);
            }
        }