private void parse(String styleSheet) throws StyleException {
CharStream cs = new ANTLRStringStream(styleSheet);
CssLexer lexer = new CssLexer(cs);
CommonTokenStream tokens = new CommonTokenStream();
tokens.setTokenSource(lexer);
CssParser parser = new CssParser(tokens);
try {
parser.stylesheet();
} catch (RecognitionException ex) {
throw new StyleException(ex.getMessage());
}
for (CssParser.Rule parserRule : parser.rules) {