
messages.attributeDescriptions.consumeTokenMethod.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grammar-kit Show documentation
Show all versions of grammar-kit Show documentation
Grammar-Kit library dedicated for language plugin developers.
The newest version!
Consume token method defaults to consumeToken.
Used mainly for performance reasons.
Provided methods are consumeToken and consumeTokenFast.
Custom consume method may be employed as well.
Examples:
{
// do not record error reporting information in recover rules
consumeTokenMethod(".*_recover")="consumeTokenFast"
// do not record error reporting information in expression parsing,
// no one really needs to know that + - * / are expected at any offset
consumeTokenMethod(".*_expr|.*_op|value_expression")="consumeTokenFast"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy