afe.initCause(e);
throw afe;
}
}
try {
CharStream stream = new CharStream(s);
Lexer lexer = new Lexer(stream);
REParser parser = new REParser(lexer);
parser.parse();
assertEquals(s.length(), stream.getIndex());
if (lexer.hasNext()) {
throw new SyntaxException();
}
if (javaccFail) {
throw new AssertionFailedError("Was expecting " + s + " to not be compilable");