mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/empty_context] Add missing file
This commit is contained in:
20
poincare/include/poincare/empty_context.h
Normal file
20
poincare/include/poincare/empty_context.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef POINCARE_EMPTY_CONTEXT_H
|
||||
#define POINCARE_EMPTY_CONTEXT_H
|
||||
|
||||
#include <poincare/context.h>
|
||||
#include <poincare/expression.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
class EmptyContext : public Context {
|
||||
public:
|
||||
// Context
|
||||
SymbolAbstractType expressionTypeForIdentifier(const char * identifier, int length) override { return SymbolAbstractType::None; }
|
||||
void setExpressionForSymbolAbstract(const Expression & expression, const SymbolAbstract & symbol) override { assert(false); }
|
||||
const Expression expressionForSymbolAbstract(const SymbolAbstract & symbol, bool clone) override { return Expression(); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user