kevinlawler / kona

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

(\)(\) #497

Closed tavmem closed 6 years ago

tavmem commented 6 years ago

In k2.8

$ rlwrap ~/k2.8/k
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
Evaluation. Not for commercial use. 
\ for help. \\ to exit.
  (\)(\)
\
\

In Kona

$ rlwrap -n ~/konak/k
K Console - Enter \ for help
  (\)(\)
Segmentation fault (core dumped)
$ 
tavmem commented 6 years ago

Note, that in k2.8

 rlwrap -n ~/k2.8/k
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
Evaluation. Not for commercial use. 
\ for help. \\ to exit.

  f:(\)(\)
\
  f
\

It is beginning to look like

(\)

is a borderline case and should produce a syntax error. For now, I'm going to treat it as a syntax error.

tavmem commented 6 years ago

We can probably match the k2.8 output on this one.