ebnf-bff-0.1.1.0: Parser combinators & EBNF, BFFs!

Safe HaskellNone
LanguageHaskell2010

Text.EBNF.Build.Parser.Except

Synopsis

Documentation

data FailData Source

Constructors

FailData 

Instances

data Report Source

Constructors

Clean 
Warning 

Fields

warnings :: [FailData]
 
Failed 

Fields

failures :: [FailData]
 

Instances

combineReports :: Report -> Report -> Report Source

Combining reports is a symmetric operation where Cleans are overridden by Warnings and Faileds, whereas Warnings are overridden only by Faileds.

generateReport :: SyntaxTree -> Report Source

Will analyse a syntax tree, returning reports to be combined together.

neverTerminating :: SyntaxTree -> Report Source

Failed when a repeat sequence with only optional sequences or has an optional sequence as it's first subsequence

Warning when a repeat sequence contains a definitions list that contains an optional sequence.

Clean otherwise

tail' :: [a] -> [a] Source