definition:
|
ident :: Parser String
ident [] = []
ident (x:xs) | isAlpha x = let (ys,zs) = span isIdChar xs in [(x:ys,zs)]
| otherwise = []
where
isIdChar c = isDigit c || isAlpha c || c == '_' || c == '\''
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- A longest-match parser for an Identifier (not operator)
|
failfree:
|
_
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({[]}) |-> {[]} || ({:}) |-> {:,[]}}
|
name:
|
ident
|
precedence:
|
no precedence defined
|
result-values:
|
{:,[]}
|
signature:
|
String -> [(String, String)]
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|