boschresearch / blech

Blech is a language for developing reactive, real-time critical embedded software.
Apache License 2.0
72 stars 5 forks source link

Multiline bindings are not correctly generated in signatures #58

Closed schorg closed 3 years ago

schorg commented 3 years ago

Describe the bug Multi line c bindings are not correctly generated in .blh files

To Reproduce

Example

module exposes test

@[CFunction (binding = """bla
                          fasel
                          blub""", 
             header = "myheader.h")]
extern function test ()

Generates the following in the signature file

signature

@[CFunction(binding = "bla
fasel
blub", header = "myheader.h")]
extern function test()

This is an incorrect single-line string, incorrectly indented.

schorg commented 3 years ago

Fixed with commit 5a08f311eb04706ca9211aeaa58c4a7f43d9b6fe