mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[VariableBox] Added sequences to the variable box
It is now possible to call the value of a defined sequence anywhere. Change-Id: I1990e93c50f9add175b7ea274e07004ba63289e5
This commit is contained in:
committed by
Émilie Feral
parent
c006ed7b10
commit
3dca515441
@@ -98,6 +98,7 @@ class Expression : public TreeHandle {
|
||||
friend class SubtractionNode;
|
||||
friend class Sum;
|
||||
friend class SumAndProduct;
|
||||
friend class SumAndProductNode;
|
||||
friend class Symbol;
|
||||
friend class SymbolAbstractNode;
|
||||
friend class Tangent;
|
||||
|
||||
@@ -19,6 +19,7 @@ public:
|
||||
|
||||
Type type() const override { return Type::Sequence; }
|
||||
Expression replaceSymbolWithExpression(const SymbolAbstract & symbol, const Expression & expression) override;
|
||||
int simplificationOrderSameType(const ExpressionNode * e, bool ascending, bool canBeInterrupted, bool ignoreParentheses) const override;
|
||||
|
||||
private:
|
||||
char m_name[0];
|
||||
|
||||
@@ -66,6 +66,7 @@ class SymbolAbstract : public Expression {
|
||||
friend class Symbol;
|
||||
friend class SymbolNode;
|
||||
friend class SymbolAbstractNode;
|
||||
friend class SumAndProductNode;
|
||||
public:
|
||||
const char * name() const { return node()->name(); }
|
||||
bool hasSameNameAs(const SymbolAbstract & other) const;
|
||||
|
||||
Reference in New Issue
Block a user