175176177178179180181
} /* ---- error helpers ---- */ protected ParserError createError(ParserErrorTypes errorType, SourceRange sr, Object msgData) { return new ParserError(errorType, sr, sr.getRangeSubString(getSource()), msgData); }
269270271272273274275276277278
protected final BaseLexElement consumeExpectedContentToken(DeeTokens expectedTokenType) { if(lookAhead() == expectedTokenType) { return consumeLookAhead(); } else { ParserError error = createExpectedTokenError(expectedTokenType); BaseLexElement missingToken = consumeSubChannelTokens(error); return missingToken; } }