definition:
|
terminal :: (Eq token, Show token) => token -> Parser token ()
terminal _ [] = eof []
terminal x (t:ts) = case x == t of
True -> Right (ts, ())
False -> unexpected t ts
|
demand:
|
argument 4
|
deterministic:
|
deterministic operation
|
documentation:
|
--- A parser recognizing a particular terminal symbol.
|
failfree:
|
(_, _, _, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_,_,{[]}) |-> {Left} || (_,_,_,{:}) |-> _}
|
name:
|
terminal
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
(Prelude.Eq a, Prelude.Show a) => a -> [a] -> Prelude.Either String ([a], ())
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
yes
|
totally-defined:
|
reducible on all ground data terms
|