class RuleParser {

	public static KnowledgeBase parse(final InputStream stream, final String encoding,
			final ParserConfiguration parserConfiguration) throws ParsingException {
		JavaCCParser parser = new JavaCCParser(stream, encoding);
		parser.setParserConfiguration(parserConfiguration);
		return doParse(parser);
	}

	private  RuleParser();

}