You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
283 B

2 years ago
  1. module Main where
  2. import Lexer.Support
  3. import Lexer
  4. import Debug.Trace (traceM)
  5. import Control.Monad.RWS
  6. main :: IO ()
  7. main = do
  8. putStrLn "hello world"
  9. lexAll :: Lexer ()
  10. lexAll = do
  11. tok <- scan
  12. case tok of
  13. TkEOF -> pure ()
  14. x -> do
  15. traceM (show x)
  16. lexAll