Example #1
0
        public Tree Interpret(Tree frame)
        {
            if (_interpreter != null)
            {
                Tree        tree               = LayerChain.InterpretChain(_layers, frame);
                MutableTree mutable            = MutableTree.FromTree(tree);
                PrefabSingleInterpretArgs args = new PrefabSingleInterpretArgs(mutable, Storage);

                try
                {
                    _interpreter.Interpret(args);
                }
                catch (Exception e)
                {
                    mutable["interpretation_exception"] = e;
                }

                return(Tree.FromMutable(mutable));
            }

            return(frame);
        }
Example #2
0
 public Tree Interpret(Tree frame)
 {
     return(LayerChain.InterpretChain(_layers, frame));
 }