Protean-Labs / mesh

The Mesh Engine that implements the Mesh Language, a computational language for web3.
Apache License 2.0
1 stars 0 forks source link

Add grammar support for list spread operator #29

Closed cvauclair closed 3 years ago

cvauclair commented 3 years ago

Description

The Mesh Language grammar should support list expressions which include the spread operator ....

Example:

let a = [1, 2, 3];      // Regular list expression
let b = [4, ...a];      // List expression with spread, the list b is [4, 1, 2, 3]
let c = [3, 4, ...a];   // Another example, the list c is [3, 4, 1, 2, 3]
cvauclair commented 3 years ago

Closed by #38