Safe Haskell | None |
---|---|
Language | Haskell2010 |
Type EBNF
Extended Backus-Naur-Form, following the ISO-IEC-14977 notations, augmented with the following notations:
("U+", code_point)
: for ISO-IEC-10646 (aka. Unicode).(char, "…", char)
: for character range.(rule, "&", rule)
: for the intersection.(rule, "-", rule)
: for the difference.(rule, " ", rule)
: for rule application.
Inherited attributes are:
RuleMode
is the requested rendering mode of aRule
(body or reference).Infix
andSide
are the properties of the parent operator, used to enclose the operand in parenthesis only when needed.
Synthetized attributes are:
Type RuleMode
RuleMode_Body | Request to generate the body of the rule. |
RuleMode_Ref | Request to generate a reference to the rule. |
Type Rule
Class Gram_Rule
Type RuleEBNF
RuleEBNF | |
|
Class Gram_RuleEBNF
class Gram_RuleEBNF g where Source #
Symantics for rendering EBNF
rules.
Gram_RuleEBNF RuleEBNF Source # | |
Gram_RuleEBNF EBNF Source # | |
Gram_RuleEBNF g => Gram_RuleEBNF (CF g) Source # | |
Gram_RuleEBNF g => Gram_RuleEBNF (Reg SideL g) Source # | |
Gram_RuleEBNF g => Gram_RuleEBNF (Reg SideR g) Source # | |