title: ANTLR's Parsing with SLL predication mode
body: <p>I am parsing java source files (<a href="https://github.com/neiljbrown/java9-examples/tree/master/src/test/java/com/neiljbrown/examples/java9" rel="nofollow noreferrer">Java Source Files</a>) by using Grammar of Java9 in c#.</p>
  <p>When i try to parse it with LL predication mode, It work fines but when i try to parse same java files with SLL predication mode, it shows below errors on some of lines.</p>
  <blockquote>
  <p>line 27:56 mismatched input ';' expecting '.'<br />
  line 64:78 mismatched input ';' expecting '.'<br />
  line 72:78 mismatched input ';' expecting '.'<br />
  line 102:46 mismatched input ';' expecting '.'</p>
  </blockquote>
  <p>or</p>
  <blockquote>
  <p>line 19:0 extraneous input 'import' expecting {, 'abstract', 'class', 'enum', 'final', 'interface', 'private', 'protected', 'public', 'static', 'strictfp', ';', '@'}</p>
  </blockquote>
  <p>Thats how i am trying to parse java file</p>
  <pre><code>  AntlrFileStream stream = new AntlrFileStream(file);
    ITokenSource lexer = new Java9Lexer(stream);
    ITokenStream tokens = new CommonTokenStream(lexer);
    Java9Parser parser = new Java9Parser(tokens);
    parser.Interpreter.PredictionMode = PredictionMode.SLL;
    IParseTree tree = parser.compilationUnit();
  </code></pre>
  <p>What changes in grammer would resolve this issue. I can't apply LL predication mode because it parse source files too slow.</p>