Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
Saverio976 committed Dec 5, 2023
1 parent 1e84747 commit 97bbbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextToAST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cutAtClose (x:xs) = (x:cutAtClose xs)

nextToParse :: String -> String
nextToParse [] = []
nextToParse ('(':xs) = nextToParse' xs 0
nextToParse ('(':xs) = nextToParse' xs 1
nextToParse str | skipableChar (head str) = nextToParse (dropWhile skipableChar str)
| (last str) == ')' = nextToParse (popBackPrths str)
| otherwise = dropWhile skipableChar
Expand Down

0 comments on commit 97bbbf7

Please sign in to comment.