definition: |
terminal :: (Eq tok, Show tok) => tok -> Parser tok () terminal tok = Parser $ \tokens -> case tokens of [] -> (runParser eof) [] t:ts | tok == t -> Right (ts, ()) | otherwise -> (runParser (unexpected t)) ts |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
failfree: |
(_, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,_) |-> _} |
name: |
terminal |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
(Prelude.Eq a, Prelude.Show a) => a -> Parser a () |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
possibly non-reducible on same data term |