alexdovzhanyn / ThetaLang

θ A statically typed, functional programming language that compiles to WebAssembly
MIT License
32 stars 9 forks source link

REPL: Segmentation fault during assignment #37

Open alexdovzhanyn opened 4 days ago

alexdovzhanyn commented 4 days ago

When using the Theta REPL, if you try to do any kind of assignment, even something as simple as x<Number> = 1, it will fail with a segmentation fault.

It seems that if you wrap the assignment in a capsule, that issue doesn't occur.

capsule Test { x<Number> = 1 }

The above code parses exactly as expected. The issue seems to stem somehow from how free-floating expressions are parsed within the REPL.

PranavKeshav24 commented 3 days ago

Please assign this issue to me. I would be very happy to work on it.

alexdovzhanyn commented 3 days ago

@PranavKeshav24 go for it!