ConstReal Double |
ConstInteger Integer |
Negate Expression |
- Inner Expression Expression |
+ Integrate Expression |
Laplacian Expression |
Sum Expression String |
Multiply Expression Expression |
getType :: OFL -> Expression -> BaseType
getType _ (ConstReal _) = RealType
getType _ (ConstInteger _) = IntegerType
-getType _ (Inner _ _) = RealType
+getType _ (Integrate _) = RealType
getType _ (Laplacian _) = FunctionType
getType _ (PositionComponent _) = FunctionType
getType ofl (IndexedIdentifier name _) = getValueType ofl name
validateExpression ofl (Negate e) = validateExpression ofl e
-validateExpression ofl (Inner a b) = do
+validateExpression ofl (Integrate a) = do
validateExpression ofl a
- validateExpression ofl b
isFunction ofl a
- isFunction ofl b
validateExpression ofl (Laplacian e) = do
validateExpression ofl e