Copyright | (c) Kimiyuki Onaka 2020 |
---|---|
License | Apache License 2.0 |
Maintainer | kimiyuki95@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CmpOp
- data DivModOp
- data AugOp
- data Token
- = None
- | Int Integer
- | Bool Bool
- | String String
- | Bytes [Int8]
- | Float Double
- | Imaginary Double
- | Def
- | If
- | Elif
- | Else
- | For
- | In
- | Assert
- | Return
- | Lambda
- | Arrow
- | Colon
- | Semicolon
- | Comma
- | Dot
- | Equal
- | Underscore
- | OpenBrace
- | OpenBracket
- | OpenParen
- | CloseBrace
- | CloseBracket
- | CloseParen
- | Ident String
- | WalrusOp
- | ImpliesOp
- | OrOp
- | AndOp
- | NotOp
- | CmpOp CmpOp
- | MinOp
- | MaxOp
- | BitOrOp
- | BitXorOp
- | BitAndOp
- | BitLShiftOp
- | BitRShiftOp
- | PlusOp
- | MinusOp
- | MulOp
- | DivModOp DivModOp
- | AtOp
- | BitNotOp
- | PowOp
- | AugOp AugOp
- | Newline
- | Indent
- | Dedent
- | As
- | Async
- | Await
- | Break
- | Class
- | Continue
- | Del
- | Except
- | Finally
- | From
- | Global
- | Import
- | Is
- | Nonlocal
- | Pass
- | Raise
- | Try
- | While
- | With
- | Yield
- type Token' = WithLoc Token
Documentation
AugAdd | |
AugSub | |
AugMul | |
AugAt | |
AugDiv | |
AugFloorDiv | |
AugFloorMod | |
AugCeilDiv | |
AugCeilMod | |
AugPow | |
AugBitRShift | |
AugBitLShift | |
AugBitAnd | |
AugBitXor | |
AugBitOr | |
AugMin | |
AugMax |
We don't have to classify tokens in detail, but it's convenient for testing and debugging.