mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
Poincare: Simplifier -> Simplify
Change-Id: I1dfdf9e9d99ffd0ce604547b54c88263e621b97b
This commit is contained in:
@@ -21,7 +21,7 @@ objs += $(addprefix poincare/src/layout/,\
|
||||
string_layout.o\
|
||||
)
|
||||
objs += $(addprefix poincare/src/simplify/,\
|
||||
simplifier_zero.o\
|
||||
simplify_product_zero.o\
|
||||
)
|
||||
tests += $(addprefix poincare/test/,\
|
||||
addition.cpp\
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include <poincare/expression.h>
|
||||
#include "expression_parser.hpp"
|
||||
#include "expression_lexer.hpp"
|
||||
#include "simplify/simplifier.h"
|
||||
#include "simplify/simplifier_zero.h"
|
||||
#include "simplify/simplify.h"
|
||||
#include "simplify/simplify_product_zero.h"
|
||||
|
||||
static expression_simplifier_t kSimplifiers[] = {
|
||||
&SimplifierZero,
|
||||
&SimplifyProductZero,
|
||||
nullptr
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef POINCARE_SIMPLIFIER_ZERO_H
|
||||
#define POINCARE_SIMPLIFIER_ZERO_H
|
||||
|
||||
#include "simplifier.h"
|
||||
|
||||
Expression * SimplifierZero(Expression * e);
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef POINCARE_SIMPLIFIER_H
|
||||
#define POINCARE_SIMPLIFIER_H
|
||||
#ifndef POINCARE_SIMPLIFY_H
|
||||
#define POINCARE_SIMPLIFY_H
|
||||
|
||||
#include <poincare/expression.h>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "simplifier_zero.h"
|
||||
#include "simplify_product_zero.h"
|
||||
#include <poincare/product.h>
|
||||
#include <poincare/integer.h>
|
||||
|
||||
Expression * SimplifierZero(Expression * e) {
|
||||
Expression * SimplifyProductZero(Expression * e) {
|
||||
if (e->type() != Expression::Type::Product) {
|
||||
return nullptr;
|
||||
}
|
||||
8
poincare/src/simplify/simplify_product_zero.h
Normal file
8
poincare/src/simplify/simplify_product_zero.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef POINCARE_SIMPLIFY_PRODUCT_ZERO_H
|
||||
#define POINCARE_SIMPLIFY_PRODUCT_ZERO_H
|
||||
|
||||
#include "simplify.h"
|
||||
|
||||
Expression * SimplifyProductZero(Expression * e);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user