Blame view

Giac_maj/epsilon-giac/poincare/src/simplify/simplification.cpp 327 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  #include "simplification.h"
  
  namespace Poincare {
  
  Expression * Simplification::simplify(Expression * expression) const {
    ExpressionMatch matches[255]; // FIXME: The size ca be given by our compiler
    if (m_selector->match(expression, matches)) {
      return m_builder->build(matches);
    } else {
      return nullptr;
    }
  }
  
  }