Example #1
0
        protected Engine(BinderFactory factory)
        {
            Contract.Requires<ArgumentNullException>(factory != null);

            Factory = factory;
            Global = new Scope();
            In = Console.In;
            Out = Console.Out;
            DefaultEncoding = Encoding.Default;
        }
Example #2
0
 public ScopeMetaObject(Scope self, Expression expr)
     : base(expr, BindingRestrictions.GetExpressionRestriction(Expression.TypeIs(expr, typeof(Scope))), self)
 {
 }
Example #3
0
 public Scope(Scope parent)
 {
     _parent = parent;
 }
Example #4
0
 public Scope()
 {
     _parent = null;
 }