ThetaLang / Theta

θ A statically typed, functional programming language that compiles to WebAssembly
https://theta-lang.org
MIT License
38 stars 10 forks source link

REPL: Segmentation fault during assignment #37

Open alexdovzhanyn opened 1 month ago

alexdovzhanyn commented 1 month 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 1 month ago

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

alexdovzhanyn commented 1 month ago

@PranavKeshav24 go for it!