willow-ahrens / Finch.jl

Sparse tensors in Julia and more! Datastructure-driven array programing language.
http://willowahrens.io/Finch.jl/
MIT License
158 stars 15 forks source link

Multiple let statements not parsing properly #385

Closed radha-patel closed 7 months ago

radha-patel commented 7 months ago
julia> c = Scalar(0)
Scalar{0, Int64}(0)

julia> @finch_program let a=1, b=2; c[] += a + b end
for a = 1, b = 2
  Scalar{0, Int64}(0)[] <<+>>= +(a, b)
end

Outputted code should have let in place of for.

willow-ahrens commented 7 months ago

fixed in https://github.com/willow-ahrens/Finch.jl/pull/386