Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lexer
Synopsis
- data Token
- = Keyword !Text
- | Identifier !Text
- | CharLiteral !Text
- | IntLiteral !Text
- | BooleanLiteral !Text
- | StringLiteral !Text
- | AssignOp
- | CompoundAssignOp !Text
- | IncrementOp !Text
- | ArithmeticOp !Text
- | RelationOp !Text
- | EquationOp !Text
- | ConditionOp !Text
- | LCurly
- | RCurly
- | LParen
- | RParen
- | LBrack
- | RBrack
- | Choice
- | Colon
- | Semicolon
- | Comma
- | Negate
- | EOF
- newtype Alex a = Alex {}
- data AlexState = AlexState {}
- data AlexUserState = AlexUserState {}
- scan :: ByteString -> Either [CompileError] [Located Token]
- alexMonadScan :: Alex (Located Token)
- runAlex :: ByteString -> Alex a -> Either String a
- addError :: CompileError -> Alex ()
- alexError :: String -> Alex a
- getAlexState :: Alex AlexState
Documentation
Lexer tokens.
Constructors
data AlexUserState Source #
Constructors
AlexUserState | |
Fields
|
scan :: ByteString -> Either [CompileError] [Located Token] Source #
addError :: CompileError -> Alex () Source #