ideas-1.1: Feedback services for intelligent tutoring systems

Portabilityportable (depends on ghc)
Stabilityprovisional
Maintainerbastiaan.heeren@ou.nl
Safe HaskellNone

Ideas.Common.Strategy.Parsing

Description

Basic machinery for executing a core strategy expression.

Documentation

data Step l a Source

Constructors

Enter l 
Exit l 
RuleStep Environment (Rule a) 

Instances

Apply (Step l) 
Eq l => Eq (Step l a) 
Show l => Show (Step l a) 
Minor (Step l a) 

data State l a Source

Instances

(Show l, Show a) => Show (State l a) 

makeState :: Core l a -> a -> State l aSource

stack :: State l a -> Stack l aSource

trace :: State l a -> [Step l a]Source

value :: State l a -> aSource

replay :: Monad m => Int -> [Bool] -> Core l a -> m (State l a)Source

runCore :: Core l a -> a -> [a]Source

firsts :: Bool -> State l a -> [(Result (Step l a), State l a)]Source

data Result a Source

Constructors

Result a 
Ready 

Instances