Bug in JackCompiler, hang during parse

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug in JackCompiler, hang during parse

zenspider
Using 2.5.x on osx I found the following parser bug:

// -*- c -*-

class ParserBug1 {
  function void init() {
    var int n;

    let n = 1;
    let n = n + n

      return;
  }
}

Because of the missing semicolon after a binary operation but in front of a return line, the parser hangs seemingly indefinitely.