think i fixed the offset
This commit is contained in:
parent
246d397ed8
commit
5d696eaf8d
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ invalidAccesses = invAcc [] "" 0
|
||||||
invAcc :: [(String,Slice,Bool)] -> String -> Int -> CheckString -> Slices
|
invAcc :: [(String,Slice,Bool)] -> String -> Int -> CheckString -> Slices
|
||||||
invAcc a accumStr i ('{':t) = invAcc (enterBlock a) "" (i+1+(length accumStr)) t
|
invAcc a accumStr i ('{':t) = invAcc (enterBlock a) "" (i+1+(length accumStr)) t
|
||||||
invAcc a accumStr i ('}':t) = invAcc (leaveBlock a) "" (i+1+(length accumStr)) t
|
invAcc a accumStr i ('}':t) = invAcc (leaveBlock a) "" (i+1+(length accumStr)) t
|
||||||
invAcc a accumStr i ('[':t) = invAcc a accumStr (i+1 + g+1) (drop g t) -- TODO check reads in first part
|
invAcc a accumStr i ('[':t) = invAcc a accumStr (i+1 + g) (drop g t) -- TODO check reads in first part
|
||||||
where g = fromJust (elemIndex ':' t)
|
where g = fromJust (elemIndex ':' t)
|
||||||
-- when reading an assignment :word: =
|
-- when reading an assignment :word: =
|
||||||
-- put :word:, slice, false in the list
|
-- put :word:, slice, false in the list
|
||||||
|
|
Loading…
Reference in a new issue