program doesn't parse #1836
-
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.
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.
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.