break;
case IPythonNature.GRAMMAR_PYTHON_VERSION_2_7:
grammar = new PythonGrammar27(generateTree, in);
break;
case IPythonNature.GRAMMAR_PYTHON_VERSION_3_0:
grammar = new PythonGrammar30(generateTree, in);
break;
//case CYTHON: not treated here (only in reparseDocument).
default:
throw new RuntimeException("The grammar specified for parsing is not valid: " + grammarVersion);
}