summaryrefslogtreecommitdiff
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-09-02 21:02:01 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-09-02 21:02:01 +0200
commit4afe27c6da9cf37ca3666ff95c5cb096e03fb20b (patch)
tree7a53dfde812823faff4a673c47214b760f66dd4a /src/Parser.hs
parent6e183bf63ad75da44a030d0d6f5060e8b745d2ca (diff)
Regex expression instance
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 027c358..5a5ec28 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -259,6 +259,7 @@ someExpr = join inner <?> "expression"
literal = label "literal" $ choice
[ return . SomeExpr <$> integerLiteral
, return . SomeExpr <$> quotedString
+ , return . SomeExpr <$> regex
]
variable = label "variable" $ do