Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CapExpression = CapExpression {}
- type CapParam = Word
- type CapOps = [CapOp]
- data CapOp
- = Bytes !Int !Int
- | DecOut
- | CharOut
- | PushParam !Word
- | PushValue !Word
- | Conditional {
- conditionalExpr :: !CapOps
- conditionalParts :: ![(CapOps, CapOps)]
- | BitwiseOr
- | BitwiseXOr
- | BitwiseAnd
- | ArithPlus
- | ArithMinus
- | CompareEq
- | CompareLt
- | CompareGt
- type ParamOps = [ParamOp]
- data ParamOp = IncFirstTwo
- parseCapExpression :: String -> Either ParseError CapExpression
- constructCapExpression :: [Char] -> BuildResults -> CapExpression
- type CapParser a = Parsec String BuildState a
- capExpressionParser :: CapParser BuildResults
- paramEscapeParser :: CapParser BuildResults
- literalPercentParser :: CapParser BuildResults
- paramOpParser :: CapParser BuildResults
- incrementOpParser :: CapParser BuildResults
- pushOpParser :: CapParser BuildResults
- decOutParser :: CapParser BuildResults
- charOutParser :: CapParser BuildResults
- conditionalOpParser :: CapParser BuildResults
- conditionalTrueParser :: CapParser ()
- conditionalFalseParser :: CapParser ()
- conditionalEndParser :: CapParser ()
- bitwiseOpParser :: CapParser BuildResults
- bitwiseOrParser :: CapParser BuildResults
- bitwiseAndParser :: CapParser BuildResults
- bitwiseXorParser :: CapParser BuildResults
- arithOpParser :: CapParser BuildResults
- literalIntOpParser :: CapParser BuildResults
- compareOpParser :: CapParser BuildResults
- bytesOpParser :: CapParser BuildResults
- charConstParser :: CapParser BuildResults
- data BuildState = BuildState {
- nextOffset :: Int
- incOffset :: Int -> CapParser ()
- initialBuildState :: BuildState
- data BuildResults = BuildResults {
- outParamCount :: !Int
- outCapOps :: !CapOps
- outParamOps :: !ParamOps
- data ParseError :: *
Documentation
constructCapExpression :: [Char] -> BuildResults -> CapExpression Source
type CapParser a = Parsec String BuildState a Source
data BuildState Source
data BuildResults Source
BuildResults | |
|