| Copyright | (C) 2026 - Eitan Chatav |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Eitan Chatav <eitan.chatav@gmail.com> |
| Stability | provisional |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Control.Lens.Grammar.Symbol
Contents
Description
Synopsis
- class TerminalSymbol token s | s -> token where
- terminal :: [token] -> s
- class NonTerminalSymbol s where
- nonTerminal :: String -> s
Symbol
class TerminalSymbol token s | s -> token where Source #
A terminal symbol in a grammar.
Minimal complete definition
Nothing
Methods
Instances
class NonTerminalSymbol s where Source #
A nonTerminal symbol in a grammar.
Methods
nonTerminal :: String -> s Source #
Instances
| NonTerminalSymbol RegBnf Source # | |
Defined in Control.Lens.Grammar Methods nonTerminal :: String -> RegBnf Source # | |
| NonTerminalSymbol RegString Source # | |
Defined in Control.Lens.Grammar Methods nonTerminal :: String -> RegString Source # | |
| (Ord rule, NonTerminalSymbol rule) => NonTerminalSymbol (Bnf rule) Source # | |
Defined in Control.Lens.Grammar.BackusNaur Methods nonTerminal :: String -> Bnf rule Source # | |
| NonTerminalSymbol (RegEx token) Source # | |
Defined in Control.Lens.Grammar.Kleene Methods nonTerminal :: String -> RegEx token Source # | |