Exemple #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;
        }
Exemple #2
0
 public ScopeMetaObject(Scope self, Expression expr)
     : base(expr, BindingRestrictions.GetExpressionRestriction(Expression.TypeIs(expr, typeof(Scope))), self)
 {
 }
Exemple #3
0
 public Scope(Scope parent)
 {
     _parent = parent;
 }
Exemple #4
0
 public Scope()
 {
     _parent = null;
 }