Copyright | (c) 2017 Patrick Champion |
---|---|
License | see LICENSE file |
Maintainer | chlablak@gmail.com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
- class LrParser config where
Documentation
class LrParser config where Source #
Type class for LR parser
config :: LrTable -> [OToken] -> config Source #
Put the input into the configuration
next :: LrTable -> config -> config Source #
Parse one iteration only
hasNext :: LrTable -> config -> Bool Source #
Check if there is still an iteration
parse :: LrTable -> config -> config Source #
Parse all iterations
parse' :: LrTable -> config -> [config] Source #
Parse all iterations and keep all configurations (in reverse order)