aboutsummaryrefslogtreecommitdiff
path: root/src/Language/SimpleShell/Parser.hs
diff options
context:
space:
mode:
authorEinhard Leichtfuß <alguien@respiranto.de>2025-05-21 11:32:24 +0200
committerEinhard Leichtfuß <alguien@respiranto.de>2025-05-21 11:32:24 +0200
commit1f5c0696463a48d9fcf7410aeaecaf83c2eef1bc (patch)
tree464f8d39570ab84882bbcbfc0e8bf30c7337a642 /src/Language/SimpleShell/Parser.hs
parent689732c084b9bc017b9015b8b151088fe057464c (diff)
Add Module parser skeleton
Diffstat (limited to 'src/Language/SimpleShell/Parser.hs')
-rw-r--r--src/Language/SimpleShell/Parser.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Language/SimpleShell/Parser.hs b/src/Language/SimpleShell/Parser.hs
index 32015f7..30554a3 100644
--- a/src/Language/SimpleShell/Parser.hs
+++ b/src/Language/SimpleShell/Parser.hs
@@ -10,10 +10,11 @@ module Language.SimpleShell.Parser
where
+import Language.SimpleShell.Parser.Root (RootParser)
+
import Control.Monad (void)
import Data.Text (Text)
-import Data.Void (Void)
-import Text.Megaparsec (MonadParsec, Parsec)
+import Text.Megaparsec (MonadParsec)
import Text.Megaparsec.Char (space1)
import qualified Text.Megaparsec.Char.Lexer as L
( lexeme
@@ -24,7 +25,7 @@ import qualified Text.Megaparsec.Char.Lexer as L
)
-type MainParser = Parsec Void Text
+type MainParser = RootParser
-- Must be kept in sync with 'commentFirstChars'.