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

Commit

Permalink
Fix bug space at end
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
Saverio976 committed Dec 4, 2023
1 parent 9ab54bf commit a9453c7
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 @@ -57,7 +57,7 @@ nextToParse str = dropWhile skipableChar (dropWhile notSkipableChar (dropWhile s

countAtoms :: String -> Int -> Int
countAtoms str depth | depth >= 2 = 2
| not (null $ dropWhile skipableChar str) = countAtoms (nextToParse str) (depth + 1)
| not (null $ takeWhile (/= ')') (dropWhile skipableChar str)) = countAtoms (nextToParse str) (depth + 1)
| otherwise = depth

createVariadic :: String -> Maybe Tree
Expand Down

0 comments on commit a9453c7

Please sign in to comment.