public Node ParseQLSSheet(string qlsSheetText) { QLSParser parser = SetupParser(qlsSheetText); var visitor = new ParseTreeVisitor(); return(visitor.Visit(parser.stylesheet())); }
public StylesheetTask Process(StylesheetTask input) { QLSParser parser = SetupParser(input.StylesheetText); var visitor = new ParseTreeVisitor(); input.Ast = visitor.Visit(parser.stylesheet()); return(input); }
public StyleSheet ParseQLSStream(TextReader reader) { if (reader == null) { throw new ArgumentNullException("reader"); } var inputStream = new AntlrInputStream(reader); var lexer = new QLSLexer(inputStream); var tokens = new CommonTokenStream(lexer); var parser = new QLSParser(tokens); var visitor = new StyleSheetBuilder(); return visitor.Visit(parser.stylesheet()); }