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 HaskellNone
LanguageHaskell2010

PP.Parser

Description

 

Synopsis

Documentation

class LrParser config where Source #

Type class for LR parser

Minimal complete definition

config, next, hasNext

Methods

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)