JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
587 stars 72 forks source link

oK node.js REPL crashes/hangs #41

Closed jordancurve closed 8 years ago

jordancurve commented 8 years ago

Any of these expressions will crash/hang the oK 0.1 node.js REPL:

&~(2!|2!)/!4 ~:/2 ~:/+3 5!'/:!16 5!!10|3!!10

jordancurve commented 8 years ago

BTW this might be working as intended -- maybe those expressions are infinite loops or something. My K isn't that great.

JohnEarnest commented 8 years ago

I believe all of these are working as intended.

JohnEarnest commented 8 years ago

Purely out of curiosity, was there any process that lead you to trying those particular expressions?

jordancurve commented 8 years ago

I was just playing around with the interpreter to try to understand the language better.