summaryrefslogtreecommitdiff
path: root/source/Meaning.hs
diff options
context:
space:
mode:
authorSimon-Kor <52245124+Simon-Kor@users.noreply.github.com>2024-08-27 01:44:45 +0200
committerSimon-Kor <52245124+Simon-Kor@users.noreply.github.com>2024-08-27 01:44:45 +0200
commit30f7c63ce566c993816607f3368c357233693aae (patch)
tree9a4cae03dabe28aeda4d2f5537ee04a808b5c49f /source/Meaning.hs
parent76ea8e11d943b123d28dfbe2f354838f80fb8dba (diff)
Experimental working commit, programm will compile
But the Proof that the domain of the local function is not right. Also if in the definition of our local function we just use f(x) = x then we get a technical ambigus parse
Diffstat (limited to 'source/Meaning.hs')
-rw-r--r--source/Meaning.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Meaning.hs b/source/Meaning.hs
index ab98c9a..4a21fa3 100644
--- a/source/Meaning.hs
+++ b/source/Meaning.hs
@@ -606,9 +606,9 @@ glossProof = \case
then Sem.DefineFunction funVar argVar <$> glossExpr valueExpr <*> glossExpr domExpr <*> glossProof proof
else error "mismatched variables in function definition."
- Raw.DefineFunctionMathy funVar domVar ranVar funVar2 argVar definitions proof -> do
+ Raw.DefineFunctionMathy funVar domVar ranExpr funVar2 argVar definitions proof -> do
if funVar == funVar2
- then Sem.DefineFunctionMathy funVar domVar ranVar argVar <$> (glossLocalFunctionExprDef `each` definitions) <*> glossProof proof
+ then Sem.DefineFunctionMathy funVar argVar domVar <$> glossExpr ranExpr <*> (glossLocalFunctionExprDef `each` definitions) <*> glossProof proof
else error "missmatched function names"
Raw.Calc calc proof ->
Sem.Calc <$> glossCalc calc <*> glossProof proof