symantic-grammar-0.2.0.20170709: Library for symantic grammars.

Safe HaskellNone
LanguageHaskell2010

Language.Symantic.Grammar.Terminal

Contents

Description

Symantics for terminal grammars.

Synopsis

Type Terminal

newtype Terminal g a Source #

Terminal grammar.

Constructors

Terminal 

Fields

Instances

Class Gram_Terminal

class Gram_Terminal g where Source #

Symantics for terminal grammars.

Minimal complete definition

any, but, eoi, char, string, unicat, range

Instances

Gram_Terminal RuleEBNF Source # 
Gram_Terminal EBNF Source # 
Gram_Terminal g => Gram_Terminal (Terminal g) Source # 
Gram_Terminal g => Gram_Terminal (CF g) Source # 
Gram_Terminal g => Gram_Terminal (Reg lr g) Source # 

Methods

any :: Reg lr g Char Source #

but :: Terminal (Reg lr g) Char -> Terminal (Reg lr g) Char -> Terminal (Reg lr g) Char Source #

eoi :: Reg lr g () Source #

char :: Char -> Reg lr g Char Source #

string :: String -> Reg lr g String Source #

unicat :: Unicat -> Reg lr g Char Source #

range :: (Char, Char) -> Reg lr g Char Source #

Type Unicat

Orphan instances