erg icon indicating copy to clipboard operation
erg copied to clipboard

Tuple is not implemented

Open mtshiba opened this issue 3 years ago • 1 comments

Reproducible code:

> erg examples/tuple.er

Result:

Error[#0000]: File examples/tuple.er, line 1
1│ p = (1, 2)
         ^
SyntaxError: invalid syntax
Error[#0000]: File examples/tuple.er, line 4
4│ q = (1, 1.0)
         ^
SyntaxError: invalid syntax
Error[#0000]: File examples/tuple.er, line 7
7│ i, j = 0, 1
    ^
SyntaxError: invalid syntax
Error[#0000]: File examples/tuple.er, line 7
7│ i, j = 0, 1
           ^
SyntaxError: invalid syntax

mtshiba avatar Aug 17 '22 03:08 mtshiba

Tuple is not yet implemented, but we have already implemented arrays. Type checking may be difficult, but modifying the parser should not be difficult.

mtshiba avatar Aug 17 '22 03:08 mtshiba

Fixed in #90 and #91.

mtshiba avatar Aug 29 '22 13:08 mtshiba