/** @see com.aptana.ide.parsing.AbstractParser#initializeLexer() */ public void initializeLexer() throws LexerException { ILexer lexer = this.getLexer(); String language = this.getLanguage(); // ignore whitespace lexer.setIgnoreSet(language, new int[] {YMLTokenTypes.WHITESPACE}); lexer.setLanguageAndGroup(language, YMLTokenList.DEFAULT_GROUP); }
/** * @see com.aptana.ide.parsing.AbstractParser#parseAll(com.aptana.ide.parsing.nodes.IParseNode) */ public void parseAll(IParseNode parentNode) throws ParseException, LexerException { ILexer lexer = this.getLexer(); lexer.setLanguageAndGroup(this.getLanguage(), "default"); // $NON-NLS-1$ this.advance(); while (this.isEOS() == false) { this.advance(); } }