Safe Haskell | None |
---|---|
Language | Haskell2010 |
NLP.GenI.LexicalSelection.Types
- data PathEqLhs
- data NodePathEqLhs
- data TopBottom
- type PathEqPair = (NodePathEqLhs, GeniVal)
- parsePathEq :: Text -> Writer [LexCombineError] PathEqLhs
- showPathEqLhs :: PathEqLhs -> Text
- data LexCombineError
- data LexCombineError2
- showLexCombineError :: LexCombineError -> (Text, Text)
- compressLexCombineErrors :: [LexCombineError] -> [LexCombineError]
Documentation
Left hand side of a path equation
Constructors
PeqInterface Text | |
PeqJust NodePathEqLhs | |
PeqUnknown Text |
Path equations
data NodePathEqLhs Source #
Path equations can either hit a feature or a node's lexeme attribute
Instances
type PathEqPair = (NodePathEqLhs, GeniVal) Source #
parsePathEq :: Text -> Writer [LexCombineError] PathEqLhs Source #
Parse a path equation using the GenI conventions
This always succeeds, but can return Just warning
if anything anomalous comes up
FIXME : make more efficient
showPathEqLhs :: PathEqLhs -> Text Source #
Warnings
data LexCombineError Source #
Constructors
BoringError Text | |
FamilyNotFoundError Text | |
SchemaError [Text] LexCombineError2 |
Instances
data LexCombineError2 Source #
Constructors
EnrichError PathEqLhs | |
StringError Text |
showLexCombineError :: LexCombineError -> (Text, Text) Source #