|
definition: |
movePosByChar :: Pos -> Char -> Pos
movePosByChar (Pos f a x y) c | c == '\n' = Pos f (a+1) (x+1) 1
| c == '\t' = Pos f (a+1) x (y+tw-mod (y-1) tw)
| otherwise = Pos f (a+1) x (y+1)
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Move the position one character |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({Pos},_) |-> {Pos}}
|
|
name: |
movePosByChar |
|
precedence: |
no precedence defined |
|
result-values: |
{Pos}
|
|
signature: |
Pos -> Prelude.Char -> Pos |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |