Skip to content

Commit

Permalink
Use parens instead of $ to fix a but that ignore terminals which star…
Browse files Browse the repository at this point in the history
…t with 'e'
  • Loading branch information
Matts966 committed Feb 10, 2020
1 parent 3d0f190 commit aa80c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SyntaxParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ parseRule = do
return (Rule name lhs rhs)

parseDerivation :: (Stream s m Char) => ParsecT s u m [Symbol]
parseDerivation = try $ [] <$ string "eps"
parseDerivation = try ([] <$ string "eps")
<|> trySepBy (ws' *> parseSymbol) (notFollowedBy (ws' *> parseIdentifier *> ws' *> (string ":")))

parseSymbol :: (Stream s m Char) => ParsecT s u m Symbol
Expand Down

0 comments on commit aa80c2a

Please sign in to comment.