Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract implementation of an automaton (or a set of automata,
in general). Auto
provides a minimal interface needed to
use automata in parsing and thus allows to use one of the
concrete implementations provided by the library:
- NLP.Partage.Auto.DAWG: directed acyclic word graph
- NLP.Partage.Auto.Trie: prefix tree
- NLP.Partage.Auto.List: set of lists
- NLP.Partage.Auto.Set: set of automata, one automaton per
Head
non-terminal
Automata
Minimal automaton implementation. Multiple roots are allowed in order to account for list implementation of an automaton.
A datatype used to distinguish head non-terminals from body non-terminals in automata-based grammar representation.
type GramAuto n t = Auto (Edge (Lab n t)) Source
Automaton type specialized to represent grammar rules.