CLanguageExpressionEvaluator: - Revise to make use of Number class rather than MAPM. In the process, implement support for bitwise operators. SourceLanguage/CLanguageFamily/CLanguageExpressionEvaluator: - Adjust interface for expression evaluation to allow specifying the type to evaluate the expression as. Adjust implementing classes accordingly. ExpressionEvaluationWindow: - Adjust to new expression interface. For now defaults to 64-bit integer type, UI for type selection to be added.
37 lines
617 B
C++
37 lines
617 B
C++
/*
|
|
* Copyright 2009, Ingo Weinhold, [email protected].
|
|
* Copyright 2014, Rene Gollent, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include "SourceLanguage.h"
|
|
|
|
|
|
SourceLanguage::~SourceLanguage()
|
|
{
|
|
}
|
|
|
|
|
|
SyntaxHighlighter*
|
|
SourceLanguage::GetSyntaxHighlighter() const
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
status_t
|
|
SourceLanguage::ParseTypeExpression(const BString& expression,
|
|
TeamTypeInformation* info, Type*& _resultType) const
|
|
{
|
|
return B_NOT_SUPPORTED;
|
|
}
|
|
|
|
|
|
status_t
|
|
SourceLanguage::EvaluateExpression(const BString& expression,
|
|
type_code type, Value*& _resultValue)
|
|
{
|
|
return B_NOT_SUPPORTED;
|
|
}
|