dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Error message for missing argument is not informative #34

Closed bradunov closed 9 years ago

bradunov commented 9 years ago

Error message for missing argument is not informative. For example, if function is defined to have two arguments (e.g. f(a,b)) and I call it with one f(a), I get: rx.blk "rx.blk" (line 42, column 45): unexpected ")" expecting letter or digit, ".", "[", operator or "," ExitFailure 1 Makefile:49: recipe for target 'rx.c' failed whereas it should have told me that I failed to supply the second argument. But I have also see instances where a similar error message was reported correctly.

bradunov commented 9 years ago

I believe this is fixed with parsec update, right?

edsko commented 9 years ago

No, this wasn't a parsec issue. See commit log for details. Closed in dev.