jococo / sallied-forth

A forth-a-like interpreter written in JavaScript for the browser.
MIT License
10 stars 1 forks source link

Arrays can't be nested. #1

Closed jococo closed 10 years ago

jococo commented 10 years ago

"[ 1 2 3 ] .s" returns a JavaScript array [1,2,3]

"[ 1 [ 2 ] 3 ] .s" returns [ [ 1, Function, 2 ], 3 ]

jococo commented 10 years ago

Nested data structures are going to need a recursive or stack based approach to compile the current 'compilable'.

jococo commented 10 years ago

fixed in c2790ecbfce1b377a1f3a8eda4e7afa0fe4ae872