Erk- / genfut

Generate bindings for Futhark
ISC License
37 stars 10 forks source link

Update array type regex to account for missing whitespace #28

Closed pema99 closed 3 years ago

pema99 commented 3 years ago

On my machine, using Futhark 0.19.7, the compiler does not emit a space after the declaration of an array type. This in turn causes the array_types Vec in the code I changed to become empty, and crucial machinery for array types is never generated.

This happens even when using the simple example in examples/. I've attached the full output of that example using sequential_c, see line 49 for an example.

This change just makes that whitespace optional in the regex.

Erk- commented 3 years ago

Thanks!

Erk- commented 3 years ago

I have published a new version with this fix