Пример #1
0
 public CellType(SpreadsheetVisitor visitor, Types value)
 {
     _visitor   = visitor;
     Type       = value;
     Expression = null;
     marked     = false;
 }
Пример #2
0
 public CellType(SpreadsheetVisitor visitor, Types tp, SpreadsheetParser.ExpContext expression)
 {
     _visitor   = visitor;
     Type       = tp;
     Expression = expression;
     marked     = false;
 }
        public AbstractFormulas(SpreadsheetVisitor visitor)
        {
            Visitor = visitor;

            //Register all AbstractFormula derivates
            //TODO: Slow in practice (?), and only needs to be calculated once (list doesnt change)!
            var AbstractFunctionFormulaTypes = ReflectiveEnumerator.GetEnumerableOfType <AbstractFormula>();

            foreach (var tp in AbstractFunctionFormulaTypes)
            {
                Register(tp.GetType(), tp.ExpressionType);
            }
        }
Пример #4
0
 public DataRepository(SpreadsheetVisitor visitor)
 {
     Formulas = new AbstractFormulas(visitor);
 }