Open gfngfn opened 2 years ago
This case is roughly processed as below.
f RGB(0.1, 0.2, 0.3)
as (f RGB) (0.1, 0.2, 0.3)
.RGB
: (f RGB) (0.1, 0.2, 0.3)
= (f (RGB ())) (0.1, 0.2, 0.3)
https://github.com/gfngfn/SATySFi/blob/133dcfb244774db14c19241bc85fc4186c297c89/src/frontend/parser.mly#L812-L815RGB
should take a float * float * float
argument, not unit
.There would be several ways fixing this: changing the representation of nullary data constuctors, attaching rough position information to dummy positions, ....
Reported by @TonalidadeHidrica at https://satysfi.slack.com.