.withLexer(CppLexer.create(conf))
.build();
}
public static Parser<Grammar> createConstantExpressionParser(CxxConfiguration conf) {
Grammar grammar = CppGrammar.create();
Parser<Grammar> parser = Parser.builder(grammar)
.withLexer(CppLexer.create(conf))
.build();
parser.setRootRule(grammar.rule(CppGrammar.constantExpression));
return parser;
}