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.
|
module Presyntax.Tokens where
|
|
|
|
import Data.Text (Text)
|
|
|
|
data TokenClass
|
|
= TokVar Text
|
|
| TokEof
|
|
|
|
| TokLambda
|
|
| TokArrow
|
|
|
|
| TokOParen
|
|
| TokOBrace
|
|
| TokCParen
|
|
| TokCBrace
|
|
|
|
| TokColon
|
|
| TokEqual
|
|
deriving (Eq, Show, Ord)
|
|
|
|
data Token
|
|
= Token { tokenClass :: TokenClass
|
|
, tokStartLine :: !Int
|
|
, tokStartCol :: !Int
|
|
}
|
|
deriving (Eq, Show, Ord)
|