platinum-parsing-0.1.0.0: General Framework for compiler development.

Copyright(c) 2017 Patrick Champion
Licensesee LICENSE file
Maintainerchlablak@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

PP.Grammars.Lexical

Contents

Description

 

Synopsis

AST

data RegExpr Source #

Lexical rule AST

Constructors

RegExpr [RegExpr]

Composed of many choices

Choice [RegExpr]

Composed of many expressions

Many0 RegExpr

a many times

Many1 RegExpr

a many times, without 0

Option RegExpr

a 0 or 1 time

Group RegExpr

a grouped (parenthesis)

Class [RegExpr]

One character in the sub-classes

Interval Char Char

One character in the interval

Value Char

One specific character

Any

One character