kevinlawler / kona

Open-source implementation of the K programming language
ISC License
1.36k stars 138 forks source link

Resume & single primitive #569

Closed tavmem closed 4 years ago

tavmem commented 4 years ago

Resume also fails when there is only a single primitive

kona      \ for help. \\ to exit.

  "x" +1
type error
"x" +1
    ^
>  : 2 + 1
parse error
"x" +1
    ^
>  \

  1 + "x"
type error
1 + "x"
  ^
>  : 1 + 2
parse error
1 + "x"
  ^
>
tavmem commented 4 years ago

After commit listed above

kona      \ for help. \\ to exit.

  2 + "x"
type error
2 + "x"
  ^
>  : 2 + 1
3

  "x" + 1
type error
"x" + 1
    ^
>  : 2 + 1
3