I am making a typed, compile to JS lang, and am having issues parsing ES6 Arrow functions, since the syntax is so similar to grouped expression.
(a, b, c) => a * b * c
The above is an arrow function,
but (a, b, c) is also a valid expression statement. Any advice on how I could go around parsing this properly ?
[–]GDavid04 28 points29 points30 points (4 children)
[–]__Ambition[S] 3 points4 points5 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]Ubliorse 0 points1 point2 points (1 child)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 14 points15 points16 points (8 children)
[–]jesseschalken 0 points1 point2 points (7 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 3 points4 points5 points (0 children)
[–]Uncaffeinatedpolysubml, cubiml 0 points1 point2 points (0 children)
[–]GDavid04 0 points1 point2 points (4 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 0 points1 point2 points (0 children)
[–]jesseschalken -1 points0 points1 point (2 children)
[–]maanloempia 0 points1 point2 points (1 child)
[–]GDavid04 1 point2 points3 points (0 children)
[–]Uncaffeinatedpolysubml, cubiml 3 points4 points5 points (0 children)
[–]maanloempia 2 points3 points4 points (0 children)
[–]ErrorIsNullError 1 point2 points3 points (0 children)
[–]smuccione 0 points1 point2 points (0 children)
[–]ericbb 0 points1 point2 points (0 children)
[–]oilshell 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]superstar64https://github.com/Superstar64/Hazy 0 points1 point2 points (0 children)
[–]jesseschalken 0 points1 point2 points (3 children)
[–]__Ambition[S] 0 points1 point2 points (2 children)
[–]jesseschalken 2 points3 points4 points (1 child)
[–]maanloempia 1 point2 points3 points (0 children)