wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Typelibrary compiler fails if last line is not blank #49

Closed lundmark closed 6 years ago

lundmark commented 8 years ago

If you have your typelibrary definition that ends with a line that has the ending scope in it (a simple line with the last } on it) the typelibrary compiler fails with:

50> expected '{' but got '@' at 114 50> at line 0, col 0: 50> @n� 50> ^ 50> failed to load ty

This should either be checked and given a proper error rather than printing a bad buffer, OR it should be accepted.

lundmark commented 8 years ago

My bad, wrong error.

This is the correct error:

50> failed to load typelib from "FILENAME HERE" 50> expected string 50> at line 2, col 0: 50> } 50> ^

wc-duck commented 8 years ago

I know this is late, but I do not seem to be able to reproduce this ( with latest code ), could you attach a repro-file?

lundmark commented 6 years ago

I can't reproduce this either.