Closed
Description
#93 introduces support for tuple index expressions but does not allow t.0.0
to be parsed because the lexer tokenizes this as an identifier t
followed by a dot .
and then a real 0.0
.
We can support this in two ways:
- Special case the lexer to not parse the
0.0
as a real in the case of a tuple access (this means the lexer now has to concern itself with the context). - Break the real
0.0
apart in the pasrer, which kinda what Rust does (see Accept tuple.0.0 as tuple indexing (take 2) rust-lang/rust#71322 after an attempt for the other method in Accept tuple.0.0 as tuple indexing rust-lang/rust#70420)