File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ module Lichen.Lexer.C where
5
5
import GHC.Generics (Generic )
6
6
7
7
import Control.Monad
8
- import Control.Monad.Except
8
+ -- import Control.Monad.Except
9
9
10
10
import Data.Hashable
11
11
12
12
import Text.Megaparsec
13
13
import Text.Megaparsec.ByteString
14
14
import qualified Text.Megaparsec.Lexer as L
15
15
16
- import Lichen.Error
16
+ -- import Lichen.Error
17
17
import Lichen.Lexer
18
18
19
19
data Tok = Auto | Break | Case | Char | Const | Continue | Default | Do
@@ -141,5 +141,6 @@ onetoken = wrap (reserved "auto") Auto
141
141
142
142
lex :: Lexer Tok
143
143
lex p d = case runParser (many (sc *> onetoken <* sc)) p d of
144
- Left e -> throwError $ LexError e
144
+ -- Left e -> throwError $ LexError e
145
+ Left _ -> return []
145
146
Right t -> return t
You can’t perform that action at this time.
0 commit comments