| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Symantic.Grammar.EBNF
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:
RuleModeis the requested rendering mode of aRule(body or reference).InfixandSideare the properties of the parent operator, used to enclose the operand in parenthesis only when needed.
Synthetized attributes are:
Instances
Type RuleMode
Constructors
| 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
Constructors
| RuleEBNF | |
Fields
| |
Instances
Class Gram_RuleEBNF
class Gram_RuleEBNF g where Source #
Symantics for rendering EBNF rules.
Instances
| 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 # | |