protected EngineConfiguration ParseContents() { AspectLanguageLexer lexer = new AspectLanguageLexer(_reader); AspectParser parser = new AspectParser(lexer); try { return parser.Parse(); } catch (antlr.RecognitionException e) { int line = e.getLine(); int startColumn = e.getColumn(); String filename = e.getFilename(); LexicalInfo info = new LexicalInfo(filename, line, startColumn, -1); throw new BuilderException(info, e.Message); } }
private void ParseSignature(XmlNode inner, PointCutDefinition def) { XmlNode signature = inner.SelectSingleNode("signature"); StringReader reader = new StringReader(signature.InnerText); AspectLanguageLexer lexer = new AspectLanguageLexer(reader); AspectParser parser = new AspectParser(lexer); parser.ParsePointcutSignature(def); }