Non-exhaustive patterns in case

17 views
Skip to first unread message

André Laszlo

unread,
Jan 27, 2012, 7:25:09 AM1/27/12
to proglang-course-2012
Hi all,

When I changed my variable declaration syntax from single to multiple
variables (int x, y) my project compiles but I get a weird parse
error:

$ ./Testcc ../med.cc
../med.cc

Parse Failed...

Tokens:
[...]
Testcc: Lexcc.x:(65,13)-(71,20): Non-exhaustive patterns in case

Any idea what causes this error in general? I understand what it means
in a Haskell context, but it doesn't make much sense to me as a parse
error.

BRs
André

Arnar Birgisson

unread,
Jan 28, 2012, 12:09:44 PM1/28/12
to proglang-c...@googlegroups.com
Hi André,

I'm not sure what is causing the error without seeing the grammar. Can
you come to one of the lab sessions this week?

cheers,
Arnar

Reply all
Reply to author
Forward
0 new messages