summaryrefslogtreecommitdiff
path: root/Utility/Matcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Matcher.hs')
-rw-r--r--Utility/Matcher.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Matcher.hs b/Utility/Matcher.hs
index 9b6005767..83a2b1d61 100644
--- a/Utility/Matcher.hs
+++ b/Utility/Matcher.hs
@@ -19,6 +19,7 @@ module Utility.Matcher (
Token(..),
Matcher,
token,
+ tokens,
generate,
match,
matchM,
@@ -48,6 +49,9 @@ token "(" = Open
token ")" = Close
token t = error $ "unknown token " ++ t
+tokens :: [String]
+tokens = words "and or not ( )"
+
{- Converts a list of Tokens into a Matcher. -}
generate :: [Token op] -> Matcher op
generate = go MAny