From 92f1f0486d7f39b12ebda685b0ed5ad3bf3d164a Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Tue, 20 May 2025 22:34:12 +0200 Subject: Change relaxed expr parser implementation Debatable whether better or worse. --- src/Language/SimpleShell/Parser.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Language/SimpleShell/Parser.hs') diff --git a/src/Language/SimpleShell/Parser.hs b/src/Language/SimpleShell/Parser.hs index be16c9f..d75602b 100644 --- a/src/Language/SimpleShell/Parser.hs +++ b/src/Language/SimpleShell/Parser.hs @@ -4,7 +4,6 @@ module Language.SimpleShell.Parser ( Parser , lexeme , symbol - , commentFirstChars , lookupVar , lookupFun , declareVars @@ -51,17 +50,12 @@ initContext = Context } --- Must be kept in sync with 'commentFirstChars'. sc :: Parser () sc = L.space space1 (L.skipLineComment "//") (L.skipBlockComment "/*" "*/") --- | List of all characters that may start a comment. -commentFirstChars :: [Char] -commentFirstChars = "/" - lexeme :: Parser a -> Parser a lexeme = L.lexeme sc -- cgit v1.2.3