Closed dusty-phillips closed 1 month ago
I suspect "binary" is supposed to be "bytes" as well.
Glance is permissive and supports more syntaxes than the compiler parser. These specifically enable the parsing of some older versions of Gleam.
@lpil that makes sense, but I think it's not parsing the current compiler syntax.
I'm obviously not clear on the history, but if glance is supposed to be more permissive than the compiler, I think it should accept :bits
, since the compiler parser does so?
It should! Yes
I'm looking here:
https://github.com/lpil/glance/blob/main/src/glance.gleam#L1110
This doesn't seem to be valid gleam. I think it's supposed to be
bits
?This parses successfully with
glance
, but it is an error when parsed with the gleam compiler.Conversely, this parses correctly with the gleam compiler, but is a UnexpectedToken error in glance: