Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseRule :: String -> Either (ParseErrorBundle String Void) (Rule CategorySpec)
- parseSoundChanges :: String -> Either (ParseErrorBundle String Void) (SoundChanges CategorySpec Directive)
- errorBundlePretty :: (VisualStream s, TraversableStream s, ShowErrorComponent e) => ParseErrorBundle s e -> String
Documentation
parseRule :: String -> Either (ParseErrorBundle String Void) (Rule CategorySpec) Source #
Parse a String
in Brassica sound change syntax into a
Rule
. Returns Left
if the input string is malformed.
For details on the syntax, refer to https://github.com/bradrn/brassica/blob/v0.2.0/Documentation.md#basic-rule-syntax.
parseSoundChanges :: String -> Either (ParseErrorBundle String Void) (SoundChanges CategorySpec Directive) Source #
Parse a list of SoundChanges
.
Re-export
:: (VisualStream s, TraversableStream s, ShowErrorComponent e) | |
=> ParseErrorBundle s e | Parse error bundle to display |
-> String | Textual rendition of the bundle |
Pretty-print a ParseErrorBundle
. All ParseError
s in the bundle will
be pretty-printed in order together with the corresponding offending
lines by doing a single pass over the input stream. The rendered String
always ends with a newline.
Since: megaparsec-7.0.0