X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=src%2Fparse.icl;h=f57c5e536c22934cf438c374ed1907b436c7d63d;hb=3944a17b55128c2b75bf1948bbf0561a4b6ca783;hp=9fa1377b2f6310b477bd7a15f4f5a91b75275acf;hpb=e4603fe257568bbc124d95dd88ea3b85dcccfa00;p=cc1516.git diff --git a/src/parse.icl b/src/parse.icl index 9fa1377..f57c5e5 100644 --- a/src/parse.icl +++ b/src/parse.icl @@ -176,7 +176,7 @@ trans1 t r = trans2 t $ const r derive gPrint TokenValue derive gEq TokenValue satTok :: TokenValue -> Parser Token Token -satTok t = top >>= \tok=:(pos, tv) -> if (eq t tok) (return tok) (fail (printToString t, pos)) +satTok t = top >>= \tok=:(pos, tv) -> if (eq t tok) (return tok) (fail (printToString tv, pos)) where eq (IdentToken _) (_, IdentToken _) = True eq (NumberToken _) (_, NumberToken _) = True