Skip to content

Commit

Permalink
formulation
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoigtlaender committed Apr 11, 2024
1 parent e0df94d commit 13095f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LogicTasks/Syntax/TreeToFormula.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ partialGrade :: OutputMonad m => TreeToFormulaInst -> Delayed TreeFormulaAnswer
partialGrade inst (Delayed ans) =
case parse (fully $ parser @TreeFormulaAnswer) "(delayed input)" ans of
Right f -> partialGrade' inst f
Left err -> case parse (fully tokenSequence) "" ans of
Left _ -> reject $ do
Left err -> reject $ case parse (fully tokenSequence) "" ans of
Left _ -> do
german $ show err
english $ show err
Right () -> reject $ do
Right () -> do
german $ unlines
[ "Ihre Abgabe konnte nicht gelesen werden." {- german -}
, "Bitte vergewissern Sie sich, ob die Anordnung der Symbole den Regeln zur Wohlaufgebautheit von Formeln genügt, und Sie insbesondere genügend Klammern benutzt haben." {- german -}
]
english $ unlines
[ "Unable to read solution."
, "Please make sure that the order of symbols adheres to the rules for well-formed formulas, especially if there are enough parenthesis."
, "Please make sure that the order of symbols adheres to the rules for well-formed formulas, especially if there are enough parentheses."
]

partialGrade' :: OutputMonad m => TreeToFormulaInst -> TreeFormulaAnswer -> LangM m
Expand Down

0 comments on commit 13095f3

Please sign in to comment.