less prototype, less bad code implementation of CCHM type theory
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.

25 lines
393 B

  1. module Presyntax.Tokens where
  2. import Data.Text (Text)
  3. data TokenClass
  4. = TokVar Text
  5. | TokEof
  6. | TokLambda
  7. | TokArrow
  8. | TokOParen
  9. | TokOBrace
  10. | TokCParen
  11. | TokCBrace
  12. | TokColon
  13. | TokEqual
  14. deriving (Eq, Show, Ord)
  15. data Token
  16. = Token { tokenClass :: TokenClass
  17. , tokStartLine :: !Int
  18. , tokStartCol :: !Int
  19. }
  20. deriving (Eq, Show, Ord)