hydra-0.5.1: Type-aware transformations for data and programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Dsl.Grammars

Description

A DSL for building BNF grammars

Synopsis

Documentation

(>:) :: String -> Pattern -> Pattern infixr 0 Source #

sep :: Pattern -> Pattern -> Pattern Source #

A helper which matches patterns like "foo.bar.quux" or "one; two; three; four"

sepp :: Pattern -> Pattern -> Pattern Source #

A helper which matches patterns like "foo.bar.quux" or "foo.bar.quux." (i.e. trailing separators are allowed)

Orphan instances

IsString Pattern Source # 
Instance details

Methods

fromString :: String -> Pattern #