erg
erg copied to clipboard
Tuple is not implemented
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
Tuple is not yet implemented, but we have already implemented arrays. Type checking may be difficult, but modifying the parser should not be difficult.
Fixed in #90 and #91.