context-free-grammar-0.1.1: Basic algorithms on context-free grammars
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Cfg.Analysis

Description

Analysis of a context-free grammar

Synopsis

Documentation

data Analysis t nt Source #

Analysis of a context-free grammar

Constructors

Analysis 

Fields

mkAnalysis :: forall cfg t nt. (Cfg cfg t nt, Ord nt, Ord t) => cfg t nt -> Analysis t nt Source #

Analyzes a context-free grammar

type Prediction t nt = (LookaheadSet t, Set (AugProduction t nt)) Source #

A lookahead set with the productions it predicts

type Predictions t nt = Set (Prediction t nt) Source #

A set of Predictions. The LookaheadSets of the Predictions will be pairwise disjoint.