Closed 0xfaded closed 10 years ago
In terms of the what, this is fantastic! Will be looking at over the next day in detail.
Just want to understand something. When I run rebuild _checkbinary_exprtest.go from testgen. I get lots of errors like this:
helper_for_test.go:144:
0. Expected `illegal constant expression: untyped number % untyped number` != `illegal constant expression: ideal % ideal`
Wrong check errors for expression '4 % 8.0i'
The expected error messages are the ones with the better error messages, but what seems to be coming out (with new and old code) are messages with "ideal". This is expected, right?
we are using different versions of go. I just grabbed whatever was in the ubuntu repo, which was 1.1.2. I rhink you must be on 1.2. Add it as an issue and ill fix it once my actual new laptop arrives, not the 5 year old dell i bought to tide me by in the mean time.
Carl 2014/01/12 16:09 "R. Bernstein" notifications@github.com:
Just want to understand something. When I run rebuild _checkbinary_exprtest.go from testgen. I get lots of errors like this:
helper_for_test.go:144: 0. Expected `illegal constant expression: untyped number % untyped number` != `illegal constant expression: ideal % ideal` Wrong check errors for expression '4 % 8.0i'
The expected error message is the one with the better error messages, but what seems to be coming out (with new and old code) are messages with "ideal". This is expected, right?
— Reply to this email directly or view it on GitHubhttps://github.com/0xfaded/eval/pull/34#issuecomment-32115517 .
Edit: This commit is for
typed
opuntyped
operations.typed
optyped
are next.This is more just a heads up this is going in. There are quite a few hacks in
errors.go
to get the formatting of binary expression errors correct.checkbinaryexpr.go
is comparatively straight forward, it just took a while to get everything right.But now, we have ...
There are still some rubbish errors being produced by bool expressions, but these are from the evaluator not the checker.
Feel free to comment or merge