| Copyright | (c) Karl Cronburg 2018 |
|---|---|
| License | BSD3 |
| Maintainer | karl@cs.tufts.edu |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Text.ANTLR.Allstar.ATN
Description
Documentation
An ATN defining some language we wish to parse
Constructors
| ATN | |
Fields
| |
Instances
| (Eq nt, Eq t) => Eq (ATN s nt t) Source # | |
| (Ord nt, Ord t) => Ord (ATN s nt t) Source # | |
Defined in Text.ANTLR.Allstar.ATN | |
| (Show nt, Show t) => Show (ATN s nt t) Source # | |
| (Prettify s, Prettify nt, Prettify t, Hashable nt, Hashable t, Eq nt, Eq t) => Prettify (ATN s nt t) Source # | |
type Transition s nt t = (ATNState nt, Edge s nt t, ATNState nt) Source #
Tuple corresponding to a distinct transition in the ATN:
The possible subscripts from Figure 8 of the ALL(*) paper
Instances
An edge in an ATN.
Constructors
| NTE nt | Nonterminal edge |
| TE t | Terminal edge |
| PE (Predicate ()) | Predicated edge with no state |
| ME (Mutator ()) | Mutator edge with no state |
| Epsilon | Nondeterministic edge parsing nothing |