Ejemplo n.º 1
0
        public override IValue interpret(Context context)
        {
            CategoryType          type = (CategoryType)check(context);
            ConstructorExpression ctor = new ConstructorExpression(type, source, null);

            return(ctor.interpret(context));
        }
Ejemplo n.º 2
0
 private IExpression resolveConstructor(Context context)
 {
     try
     {
         IExpression method = new ConstructorExpression(new CategoryType(name), null, null);
         method.check(context);
         return(method);
     }
     catch (SyntaxError)
     {
         return(null);
     }
 }