program doesn't parse #1836
Answered
by
cpitclaudel
pamelazave
asked this question in
Q&A
-
Both Visual Studio and CL versions of Dafny can't parse this file. Problem: missing r-brace on line 186. Both I and my colleagues have gone over it repeatedly and cannot find a problem with the braces. Does anyone have any advice? Please note that the file included is a Dafny program. When I tried to upload it, GitHub would not accept a .dfy file, so I changed the file type to .txt. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
cpitclaudel
Feb 17, 2022
Replies: 1 comment 3 replies
-
You have an assert between your
For this sort of bugs, I would recommend trying to minimize your program: it quickly makes it clear where the error comes from. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
pamelazave
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have an assert between your
if
and yourelse
, which is not valid syntax:For this sort of bugs, I would recommend trying to minimize your program: it quickly makes it clear where the error comes from.